mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
[ADVAPI32]
- Do not fail in RegQueryInfoKeyW if NtQuerySecurityObject fails, as shown by the test CORE-9719 svn path=/trunk/; revision=67850
This commit is contained in:
parent
f7bf32d2ad
commit
bac6c8579c
|
@ -3781,12 +3781,9 @@ RegQueryInfoKeyW(HKEY hKey,
|
|||
NULL,
|
||||
0,
|
||||
lpcbSecurityDescriptor);
|
||||
if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL)
|
||||
if (Status != STATUS_BUFFER_TOO_SMALL)
|
||||
{
|
||||
ERR("NtQuerySecurityObject for key %p (%p) failed with %lx\n",
|
||||
KeyHandle, hKey, Status);
|
||||
ErrorCode = RtlNtStatusToDosError(Status);
|
||||
goto Cleanup;
|
||||
*lpcbSecurityDescriptor = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue