mirror of
https://github.com/reactos/reactos.git
synced 2024-08-14 07:06:23 +00:00
[ADVAPI32]
RegQueryInfoKey: Initializing *lpcbSecurityDescriptor before calling NtQueryKey fixes the remaining api tests. svn path=/trunk/; revision=75589
This commit is contained in:
parent
dd1078cd17
commit
38f8c1bdc2
|
@ -3729,6 +3729,9 @@ RegQueryInfoKeyW(HKEY hKey,
|
|||
FullInfo = &FullInfoBuffer;
|
||||
}
|
||||
|
||||
if (lpcbSecurityDescriptor != NULL)
|
||||
*lpcbSecurityDescriptor = 0;
|
||||
|
||||
Status = NtQueryKey(KeyHandle,
|
||||
KeyFullInformation,
|
||||
FullInfo,
|
||||
|
@ -3786,10 +3789,7 @@ RegQueryInfoKeyW(HKEY hKey,
|
|||
NULL,
|
||||
0,
|
||||
lpcbSecurityDescriptor);
|
||||
if (Status != STATUS_BUFFER_TOO_SMALL)
|
||||
{
|
||||
*lpcbSecurityDescriptor = 0;
|
||||
}
|
||||
TRACE("NtQuerySecurityObject() returned status 0x%X\n", Status);
|
||||
}
|
||||
|
||||
if (lpftLastWriteTime != NULL)
|
||||
|
|
Loading…
Reference in a new issue