mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
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
This commit is contained in:
parent
7a3bc9a5ff
commit
781846e564
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user