diff --git a/reactos/lib/rtl/registry.c b/reactos/lib/rtl/registry.c index 5e69029e27b..934824e3d37 100644 --- a/reactos/lib/rtl/registry.c +++ b/reactos/lib/rtl/registry.c @@ -257,7 +257,7 @@ RtlFormatCurrentUserKeyPath (OUT PUNICODE_STRING KeyPath) DPRINT ("RtlFormatCurrentUserKeyPath() called\n"); Status = ZwOpenThreadToken (NtCurrentThread (), - TOKEN_READ, + TOKEN_QUERY, TRUE, &TokenHandle); if (!NT_SUCCESS (Status)) @@ -269,7 +269,7 @@ RtlFormatCurrentUserKeyPath (OUT PUNICODE_STRING KeyPath) } Status = ZwOpenProcessToken (NtCurrentProcess (), - TOKEN_READ, + TOKEN_QUERY, &TokenHandle); if (!NT_SUCCESS (Status)) {