[gtk/fix-printoperation-win32] gtkprintoperation-win32.c: Fix build on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-printoperation-win32] gtkprintoperation-win32.c: Fix build on Visual Studio
- Date: Thu, 25 Nov 2021 11:02:29 +0000 (UTC)
commit dfbcc0849b4f7c1a4900861743b300effb163c0c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Nov 25 19:00:22 2021 +0800
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]