Author: tfaber
Date: Fri May 22 16:19:23 2015
New Revision: 67850
URL:
http://svn.reactos.org/svn/reactos?rev=67850&view=rev
Log:
[ADVAPI32]
- Do not fail in RegQueryInfoKeyW if NtQuerySecurityObject fails, as shown by the test
CORE-9719
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] Fri May 22 16:19:23 2015
@@ -3781,12 +3781,9 @@
NULL,
0,
lpcbSecurityDescriptor);
- if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL)
- {
- ERR("NtQuerySecurityObject for key %p (%p) failed with %lx\n",
- KeyHandle, hKey, Status);
- ErrorCode = RtlNtStatusToDosError(Status);
- goto Cleanup;
+ if (Status != STATUS_BUFFER_TOO_SMALL)
+ {
+ *lpcbSecurityDescriptor = 0;
}
}