Commit 401ccc73 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: If importing an X11 clipboard format fails, try other candidate formats for the target.

parent 82fc4c8c
......@@ -1087,8 +1087,9 @@ static HANDLE render_format( UINT id )
for (i = 0; i < nb_current_x11_formats; i++)
{
if (current_x11_formats[i]->id != id) continue;
handle = import_selection( display, import_window, current_selection, current_x11_formats[i] );
if (handle) SetClipboardData( id, handle );
if (!(handle = import_selection( display, import_window,
current_selection, current_x11_formats[i] ))) continue;
SetClipboardData( id, handle );
break;
}
return handle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment