mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user