From 8dced5411194f31c7a3eb20e97407bf686a1b05d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 9 Apr 2006 01:59:47 +0000 Subject: Add SDL_SetModuleHandle to WinMain svn-id: r21710 --- backends/sdl/sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends') 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 -- cgit v1.2.3