diff --git a/reactos/dll/win32/advapi32/reg/reg.c b/reactos/dll/win32/advapi32/reg/reg.c index c02d180d520..468742fdcf8 100644 --- a/reactos/dll/win32/advapi32/reg/reg.c +++ b/reactos/dll/win32/advapi32/reg/reg.c @@ -3783,6 +3783,8 @@ RegQueryInfoKeyW(HKEY hKey, 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; }