mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-12 03:06:34 +08:00
Changed return value check for XGetWindowProperty
XGetWindowProperty return None if the property isn't found. So raise an error is None is returned. Otherwise the property was returned.
This commit is contained in:
parent
e5fb626d75
commit
1c577e2a12
@ -94,7 +94,7 @@ boolean xf_GetWindowProperty(xfInfo* xfi, Window window, Atom property, int leng
|
||||
property, 0, length, False, AnyPropertyType,
|
||||
&actual_type, &actual_format, nitems, bytes, prop);
|
||||
|
||||
if (status != Success)
|
||||
if (status == None)
|
||||
return False;
|
||||
|
||||
return True;
|
||||
|
Loading…
Reference in New Issue
Block a user