mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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:
parent
83a2899311
commit
03912150d8
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ RtlFormatCurrentUserKeyPath (OUT PUNICODE_STRING KeyPath)
|
||||||
DPRINT ("RtlFormatCurrentUserKeyPath() called\n");
|
DPRINT ("RtlFormatCurrentUserKeyPath() called\n");
|
||||||
|
|
||||||
Status = ZwOpenThreadToken (NtCurrentThread (),
|
Status = ZwOpenThreadToken (NtCurrentThread (),
|
||||||
TOKEN_READ,
|
TOKEN_QUERY,
|
||||||
TRUE,
|
TRUE,
|
||||||
&TokenHandle);
|
&TokenHandle);
|
||||||
if (!NT_SUCCESS (Status))
|
if (!NT_SUCCESS (Status))
|
||||||
|
@ -269,7 +269,7 @@ RtlFormatCurrentUserKeyPath (OUT PUNICODE_STRING KeyPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = ZwOpenProcessToken (NtCurrentProcess (),
|
Status = ZwOpenProcessToken (NtCurrentProcess (),
|
||||||
TOKEN_READ,
|
TOKEN_QUERY,
|
||||||
&TokenHandle);
|
&TokenHandle);
|
||||||
if (!NT_SUCCESS (Status))
|
if (!NT_SUCCESS (Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue