From 781846e5645cad1726718ad3527829c8451a724a Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 6 Aug 2014 13:06:35 +0800 Subject: [PATCH] gdkwindow-win32.c: Fix build on Visual C++ Since MSVC is more strict about the types that we try to do a compare, cast old_ptr as HWND, as we know that it is a pointer... https://bugzilla.gnome.org/show_bug.cgi?id=733768 --- gdk/win32/gdkwindow-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index 5f28496974..d1652cfa34 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -1807,7 +1807,7 @@ gdk_win32_window_set_transient_for (GdkWindow *window, w32_error = GetLastError (); /* Don't re-set GWLP_HWNDPARENT to the same value */ - if (old_ptr == parent_id && w32_error == NO_ERROR) + if ((HWND) old_ptr == parent_id && w32_error == NO_ERROR) return; /* Don't return if it failed, try SetWindowLongPtr() anyway */