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.
This commit is contained in:
parent
d4c48db4b0
commit
a30327afef
|
@ -1903,8 +1903,8 @@ static int X11DRV_CLIPBOARD_QueryAvailableData(LPCLIPBOARDINFO lpcbinfo)
|
||||||
* The TARGETS property should have returned us a list of atoms
|
* The TARGETS property should have returned us a list of atoms
|
||||||
* corresponding to each selection target format supported.
|
* corresponding to each selection target format supported.
|
||||||
*/
|
*/
|
||||||
if ((atype == XA_ATOM || atype == x11drv_atom(TARGETS)) && aformat == 32)
|
if (atype == XA_ATOM || atype == x11drv_atom(TARGETS))
|
||||||
X11DRV_CLIPBOARD_InsertSelectionProperties(display, targetList, cSelectionTargets);
|
X11DRV_CLIPBOARD_InsertSelectionProperties(display, targetList, (cSelectionTargets * aformat / (8 * sizeof(Atom))));
|
||||||
|
|
||||||
/* Free the list of targets */
|
/* Free the list of targets */
|
||||||
wine_tsx11_lock();
|
wine_tsx11_lock();
|
||||||
|
|
Loading…
Reference in New Issue