From 622507d06f7e305386c0bd898f686f78d8298345 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Tue, 30 Aug 2016 21:45:39 +0000 Subject: [PATCH] [WIN32K] - Stubpliment UOI_FLAGS flag in NtUserGetObjectInformation * Fixes 32 tests in user32_apitest GetUserObjectInformation svn path=/trunk/; revision=72515 --- reactos/win32ss/user/ntuser/winsta.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/user/ntuser/winsta.c b/reactos/win32ss/user/ntuser/winsta.c index 97116588e3c..a6a12df1967 100644 --- a/reactos/win32ss/user/ntuser/winsta.c +++ b/reactos/win32ss/user/ntuser/winsta.c @@ -722,7 +722,21 @@ NtUserGetObjectInformation( switch (nIndex) { case UOI_FLAGS: - Status = STATUS_NOT_IMPLEMENTED; + nDataSize = sizeof(USEROBJECTFLAGS); + if (nLength >= nDataSize) + { + PUSEROBJECTFLAGS ObjectFlags = pvInformation; + + ObjectFlags->fInherit = 0; + ObjectFlags->fReserved = 0; + ObjectFlags->dwFlags = 0; + + Status = STATUS_SUCCESS; + } + else + { + Status = STATUS_BUFFER_TOO_SMALL; + } ERR("UOI_FLAGS unimplemented!\n"); break;