[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:
Thomas Faber 2015-05-22 16:19:23 +00:00
parent f7bf32d2ad
commit bac6c8579c

View file

@ -3781,12 +3781,9 @@ RegQueryInfoKeyW(HKEY hKey,
NULL, NULL,
0, 0,
lpcbSecurityDescriptor); 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", *lpcbSecurityDescriptor = 0;
KeyHandle, hKey, Status);
ErrorCode = RtlNtStatusToDosError(Status);
goto Cleanup;
} }
} }