From 03912150d86c2f4a57ec5b87e37e7d376441d6ef Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 6 May 2005 00:09:08 +0000 Subject: [PATCH] create a token handle with TOKEN_QUERY access rights which is required to query the user information in RtlFormatCurrentUserKeyPath svn path=/trunk/; revision=15029 --- reactos/lib/rtl/registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {