Compile fix on MinGW W64
This commit is contained in:
parent
545b0c4526
commit
9c083efc0c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue