Use GCLP_HICON instead of GCL_HICON for 64-bit Windows compatibility

This commit is contained in:
laikh 2020-04-16 11:35:55 +08:00
parent 47485a343e
commit bff40ba97a

View File

@ -685,7 +685,7 @@ void Define_icon(void)
break;
// Set it
SetClassLongPtr(GFX2_Get_Window_Handle(), GCL_HICONSM, (LONG_PTR)hicon);
SetClassLongPtr(GFX2_Get_Window_Handle(), GCLP_HICONSM, (LONG_PTR)hicon);
//
@ -721,7 +721,7 @@ void Define_icon(void)
break;
// Set it
SetClassLongPtr(GFX2_Get_Window_Handle(), GCL_HICON, (LONG_PTR)hicon);
SetClassLongPtr(GFX2_Get_Window_Handle(), GCLP_HICON, (LONG_PTR)hicon);
// Success