浏览代码

Replace obsolete calling convention

Ben Payne 10 年之前
父节点
当前提交
a3f4adacc3
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Engine/source/main/main.cpp
  2. 2 2
      Engine/source/platformWin32/winWindow.cpp

+ 1 - 1
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;

+ 2 - 2
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<char *> argv( __FILE__, __LINE__ );
 
@@ -619,4 +619,4 @@ ConsoleFunction( isKoreanBuild, bool, 1, 1, "isKoreanBuild()" )
    }
 
    return( result );
-}
+}