mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:54:46 +00:00
win32u: NtUserGetObjectInformation returns a BOOL, not NTSTATUS.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047
This commit is contained in:
parent
f4cb3230d8
commit
b3c1bd33e0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue