create a token handle with TOKEN_QUERY access rights which is required to query the user information in RtlFormatCurrentUserKeyPath

svn path=/trunk/; revision=15029
This commit is contained in:
Thomas Bluemel 2005-05-06 00:09:08 +00:00
parent 83a2899311
commit 03912150d8

View file

@ -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))
{