create a token handle with TOKEN_QUERY access rights which is required
to query the user information in RtlFormatCurrentUserKeyPath
Modified: trunk/reactos/lib/rtl/registry.c
_____
Modified: trunk/reactos/lib/rtl/registry.c
--- trunk/reactos/lib/rtl/registry.c 2005-05-06 00:07:05 UTC (rev
15028)
+++ trunk/reactos/lib/rtl/registry.c 2005-05-06 00:09:08 UTC (rev
15029)
@@ -257,7 +257,7 @@
DPRINT ("RtlFormatCurrentUserKeyPath() called\n");
Status = ZwOpenThreadToken (NtCurrentThread (),
- TOKEN_READ,
+ TOKEN_QUERY,
TRUE,
&TokenHandle);
if (!NT_SUCCESS (Status))
@@ -269,7 +269,7 @@
}
Status = ZwOpenProcessToken (NtCurrentProcess (),
- TOKEN_READ,
+ TOKEN_QUERY,
&TokenHandle);
if (!NT_SUCCESS (Status))
{