gdk: Use a better error message

Having "Assertion failed: success" on the console is not going to help
anyone.
This commit is contained in:
Emmanuele Bassi 2015-02-27 21:00:16 +00:00
parent ab3084b714
commit 7cee6c5cc6

View File

@ -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)