Permalink
Browse files

Add SDL_SetModuleHandle to WinMain

svn-id: r21710
  • Loading branch information...
1 parent 9438f80 commit 8dced5411194f31c7a3eb20e97407bf686a1b05d Travis Howell committed Apr 9, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 8dced54

Please sign in to comment.