From bac6c8579cfa975eab44c18397ebd02ca2ece0ef Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 22 May 2015 16:19:23 +0000 Subject: [PATCH] [ADVAPI32] - Do not fail in RegQueryInfoKeyW if NtQuerySecurityObject fails, as shown by the test CORE-9719 svn path=/trunk/; revision=67850 --- reactos/dll/win32/advapi32/reg/reg.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reactos/dll/win32/advapi32/reg/reg.c b/reactos/dll/win32/advapi32/reg/reg.c index 468742fdcf8..263e0f962b3 100644 --- a/reactos/dll/win32/advapi32/reg/reg.c +++ b/reactos/dll/win32/advapi32/reg/reg.c @@ -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; } }