From dfbcc0849b4f7c1a4900861743b300effb163c0c Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 25 Nov 2021 19:00:22 +0800 Subject: [PATCH] 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. --- gtk/gtkprintoperation-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;