diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-27 21:00:16 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-27 21:02:16 +0000 |
commit | 7cee6c5cc6f35d9ed453f943686c0b21e86b4a3e (patch) | |
tree | 791f8db8228a42a2db1b0af11d9b0bab72f583ea /gdk | |
parent | ab3084b71447c456e3e37ffeee95b24f4fe8e007 (diff) | |
download | gtk+-7cee6c5cc6f35d9ed453f943686c0b21e86b4a3e.tar.gz |
gdk: Use a better error message
Having "Assertion failed: success" on the console is not going to help
anyone.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkdisplay-win32.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c index b4f004dc07..0a75f45878 100644 --- a/gdk/win32/gdkdisplay-win32.c +++ b/gdk/win32/gdkdisplay-win32.c @@ -355,7 +355,12 @@ inner_clipboard_window_procedure (HWND hwnd, GdkWindow *owner; success = OpenClipboard (hwnd); - g_return_val_if_fail (success, 0); + if (!success) + { + g_warning ("Failed to OpenClibpboard on window handle %p", hwnd); + return 0; + } + hwndOwner = GetClipboardOwner (); owner = gdk_win32_window_lookup_for_display (_gdk_display, hwndOwner); if (owner == NULL) |