Explorar o código

Merge pull request #517 from sgrenier/next

Fixes WinMain return code inconsistencies on Windows platform
Steve Grenier %!s(int64=13) %!d(string=hai) anos
pai
achega
fae3398a2b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      gameplay/src/PlatformWindows.cpp

+ 2 - 2
gameplay/src/PlatformWindows.cpp

@@ -1062,7 +1062,7 @@ int Platform::enterMessagePump()
             if (msg.message == WM_QUIT)
             if (msg.message == WM_QUIT)
             {
             {
                 _game->exit();
                 _game->exit();
-                break;
+                return msg.wParam;
             }
             }
         }
         }
         else
         else
@@ -1075,7 +1075,7 @@ int Platform::enterMessagePump()
         if (_game->getState() == Game::UNINITIALIZED)
         if (_game->getState() == Game::UNINITIALIZED)
             break;
             break;
     }
     }
-    return msg.wParam;
+    return 0;
 }
 }
 
 
 void Platform::signalShutdown() 
 void Platform::signalShutdown()