Commit a30327af authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winex11.drv: Accomodate XGetWindowProperty returning an actual format of…

winex11.drv: Accomodate XGetWindowProperty returning an actual format of something other than 32 for the TARGETS property. We shouldn't care what format the property was set with, as long as we trust that the property is an atom type.
parent d4c48db4
......@@ -1903,8 +1903,8 @@ static int X11DRV_CLIPBOARD_QueryAvailableData(LPCLIPBOARDINFO lpcbinfo)
* The TARGETS property should have returned us a list of atoms
* corresponding to each selection target format supported.
*/
if ((atype == XA_ATOM || atype == x11drv_atom(TARGETS)) && aformat == 32)
X11DRV_CLIPBOARD_InsertSelectionProperties(display, targetList, cSelectionTargets);
if (atype == XA_ATOM || atype == x11drv_atom(TARGETS))
X11DRV_CLIPBOARD_InsertSelectionProperties(display, targetList, (cSelectionTargets * aformat / (8 * sizeof(Atom))));
/* Free the list of targets */
wine_tsx11_lock();
......
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