diff options
author | Travis Howell | 2006-04-09 01:59:47 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-09 01:59:47 +0000 |
commit | 8dced5411194f31c7a3eb20e97407bf686a1b05d (patch) | |
tree | 6157353b8f12b8d43c0487a18773d7e5cd606d94 /backends | |
parent | 9438f803a6ef674856a2a686486b75f3ff248290 (diff) | |
download | scummvm-rg350-8dced5411194f31c7a3eb20e97407bf686a1b05d.tar.gz scummvm-rg350-8dced5411194f31c7a3eb20e97407bf686a1b05d.tar.bz2 scummvm-rg350-8dced5411194f31c7a3eb20e97407bf686a1b05d.zip |
Add SDL_SetModuleHandle to WinMain
svn-id: r21710
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 89352c7779..362f061a82 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -37,7 +37,8 @@ const char* stackCookie = "$STACK: 655360\0"; #if defined (WIN32) int WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpCmdLine*/, int /*iShowCmd*/) { - return main(__argc, __argv); + SDL_SetModuleHandle(GetModuleHandle(NULL)); + return main(__argc, __argv); } #endif |