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:
Ken Thomases 2008-01-25 12:20:39 +00:00 committed by Alexandre Julliard
parent d4c48db4b0
commit a30327afef
1 changed files with 2 additions and 2 deletions

View File

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