Author: ekohl
Date: Thu Aug 17 12:11:10 2017
New Revision: 75589
URL:
http://svn.reactos.org/svn/reactos?rev=75589&view=rev
Log:
[ADVAPI32]
RegQueryInfoKey: Initializing *lpcbSecurityDescriptor before calling NtQueryKey fixes the
remaining api tests.
Modified:
trunk/reactos/dll/win32/advapi32/reg/reg.c
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c [iso-8859-1] Thu Aug 17 12:11:10 2017
@@ -3729,6 +3729,9 @@
FullInfo = &FullInfoBuffer;
}
+ if (lpcbSecurityDescriptor != NULL)
+ *lpcbSecurityDescriptor = 0;
+
Status = NtQueryKey(KeyHandle,
KeyFullInformation,
FullInfo,
@@ -3786,10 +3789,7 @@
NULL,
0,
lpcbSecurityDescriptor);
- if (Status != STATUS_BUFFER_TOO_SMALL)
- {
- *lpcbSecurityDescriptor = 0;
- }
+ TRACE("NtQuerySecurityObject() returned status 0x%X\n", Status);
}
if (lpftLastWriteTime != NULL)