diff --git a/Engine/source/main/main.cpp b/Engine/source/main/main.cpp index 9728f37ec..f4c4d95e6 100644 --- a/Engine/source/main/main.cpp +++ b/Engine/source/main/main.cpp @@ -49,7 +49,7 @@ bool getDllName(std::wstring& dllName, const std::wstring suffix) return true; } -int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCommandShow) +int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCommandShow) { // Try to find the game DLL, which may have one of several file names. HMODULE hGame = NULL; diff --git a/Engine/source/platformWin32/winWindow.cpp b/Engine/source/platformWin32/winWindow.cpp index 2546f2cbb..bc8e9e48c 100644 --- a/Engine/source/platformWin32/winWindow.cpp +++ b/Engine/source/platformWin32/winWindow.cpp @@ -313,7 +313,7 @@ S32 main(S32 argc, const char **argv) #include "app/mainLoop.h" -S32 PASCAL WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, S32) +S32 WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, S32) { Vector argv( __FILE__, __LINE__ ); @@ -619,4 +619,4 @@ ConsoleFunction( isKoreanBuild, bool, 1, 1, "isKoreanBuild()" ) } return( result ); -} \ No newline at end of file +}