mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
gdk: Use a better error message
Having "Assertion failed: success" on the console is not going to help anyone.
This commit is contained in:
parent
ab3084b714
commit
7cee6c5cc6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user