Rémi Bernon : win32u: NtUserGetObjectInformation returns a BOOL, not NTSTATUS.
Module: wine Branch: master Commit: b3c1bd33e0c913def8f214baf7875f2ef8a46e6e URL: https://gitlab.winehq.org/wine/wine/-/commit/b3c1bd33e0c913def8f214baf7875f2... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Wed Jun 14 19:27:59 2023 +0200 win32u: NtUserGetObjectInformation returns a BOOL, not NTSTATUS. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55047 --- dlls/win32u/winstation.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/win32u/winstation.c b/dlls/win32u/winstation.c index 049ed111954..6877136e144 100644 --- a/dlls/win32u/winstation.c +++ b/dlls/win32u/winstation.c @@ -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); }
participants (1)
-
Alexandre Julliard