diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index abd4f7de95..34a9b2fa0c 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -1484,7 +1484,7 @@ pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam) } else { - gpointer user_data = GetWindowLongPtrW (wnd, GWLP_USERDATA); + gpointer user_data = (void *)GetWindowLongPtrW (wnd, GWLP_USERDATA); if (!user_data) return FALSE;