Browse Source

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

Fixes #501
Steve Grenier 13 years ago
parent
commit
fcf1ac4591
1 changed files with 2 additions and 2 deletions
  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()