Commit b3c1bd33 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: NtUserGetObjectInformation returns a BOOL, not NTSTATUS.

parent f4cb3230
......@@ -44,12 +44,9 @@ BOOL is_virtual_desktop(void)
{
HANDLE desktop = NtUserGetThreadDesktop( GetCurrentThreadId() );
USEROBJECTFLAGS flags = {0};
NTSTATUS status;
DWORD len;
status = NtUserGetObjectInformation( desktop, UOI_FLAGS, &flags, sizeof(flags), &len );
if (status) return FALSE;
if (!NtUserGetObjectInformation( desktop, UOI_FLAGS, &flags, sizeof(flags), &len )) return FALSE;
return !!(flags.dwFlags & DF_WINE_CREATE_DESKTOP);
}
......
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