mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 21:25:05 +00:00
[NTOS/SE]
- Use the authentication ID to determine if a token represents a child of the current process. CORE-8631 #resolve #comment the installer now works fine, but chrome fails to start svn path=/trunk/; revision=64735
This commit is contained in:
parent
4173674a62
commit
8b80957dae
|
@ -571,13 +571,13 @@ SeIsTokenChild(IN PTOKEN Token,
|
|||
ProcessToken = PsReferencePrimaryToken(PsGetCurrentProcess());
|
||||
|
||||
/* Get the ID */
|
||||
ProcessLuid = ProcessToken->TokenId;
|
||||
ProcessLuid = ProcessToken->AuthenticationId;
|
||||
|
||||
/* Dereference the token */
|
||||
ObFastDereferenceObject(&PsGetCurrentProcess()->Token, ProcessToken);
|
||||
|
||||
/* Get our LUID */
|
||||
CallerLuid = Token->TokenId;
|
||||
CallerLuid = Token->AuthenticationId;
|
||||
|
||||
/* Compare the LUIDs */
|
||||
if (RtlEqualLuid(&CallerLuid, &ProcessLuid)) *IsChild = TRUE;
|
||||
|
|
Loading…
Reference in a new issue