Compile fix on MinGW W64

This commit is contained in:
Pali Rohár 2010-07-12 10:27:44 +02:00
parent 545b0c4526
commit 9c083efc0c

View file

@ -512,11 +512,13 @@ void InitVideoSdl(void)
hwnd = info.window;
if (hwnd)
hicon = ExtractIcon(GetModuleHandle(NULL), argv[0], 0);
hicon = ExtractIcon(GetModuleHandle(NULL), (CHAR *)argv[0], 0);
if (hicon) {
SendMessage(hwnd, (UINT)WM_SETICON, ICON_BIG, (LPARAM)hicon);
#ifndef _WIN64
SetClassLong(hwnd, GCL_HICON, (LONG)hicon);
#endif
DestroyIcon(hicon);
}
#endif