From a3f4adacc3024007edc9f7467c3982a54716ad5d Mon Sep 17 00:00:00 2001 From: Ben Payne Date: Tue, 11 Nov 2014 15:19:26 -0500 Subject: [PATCH] Replace obsolete calling convention --- Engine/source/main/main.cpp | 2 +- Engine/source/platformWin32/winWindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +}