Răsfoiți Sursa

Merge pull request #517 from sgrenier/next

Fixes WinMain return code inconsistencies on Windows platform
Steve Grenier 13 ani în urmă
părinte
comite
fae3398a2b
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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)
             {
                 _game->exit();
-                break;
+                return msg.wParam;
             }
         }
         else
@@ -1075,7 +1075,7 @@ int Platform::enterMessagePump()
         if (_game->getState() == Game::UNINITIALIZED)
             break;
     }
-    return msg.wParam;
+    return 0;
 }
 
 void Platform::signalShutdown()