gtkprintoperation-win32.c: Fix build on Visual Studio

Cast the result of GetWindowLongPtrW() to void * so that we won't get
the C4047 warnings, which are considered an error in building the GTK
stack.
This commit is contained in:
Chun-wei Fan 2021-11-25 19:00:22 +08:00
parent 34038aaf7d
commit dfbcc0849b

View File

@ -1484,7 +1484,7 @@ pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam)
} }
else else
{ {
gpointer user_data = GetWindowLongPtrW (wnd, GWLP_USERDATA); gpointer user_data = (void *)GetWindowLongPtrW (wnd, GWLP_USERDATA);
if (!user_data) if (!user_data)
return FALSE; return FALSE;