Kaynağa Gözat

Fixes non-zero return codes from WinMain on Windows platform on successful exit.

Fixes #501
Steve Grenier 13 yıl önce
ebeveyn
işleme
fcf1ac4591
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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()