mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
[NTOS:SE] Get the session ID and assign it to the new token
SeExchangePrimaryToken doesn't assign the session ID to the new token, which could lead to incorrect behaviour in the long run. Let's fix that.
This commit is contained in:
parent
0d9020634a
commit
5dd93a8a5b
1 changed files with 2 additions and 1 deletions
|
@ -636,7 +636,8 @@ SeExchangePrimaryToken(
|
|||
/* Mark new token in use */
|
||||
NewToken->TokenInUse = TRUE;
|
||||
|
||||
// TODO: Set a correct SessionId for NewToken
|
||||
/* Set the session ID for the new token */
|
||||
NewToken->SessionId = MmGetSessionId(Process);
|
||||
|
||||
/* Unlock the new token */
|
||||
SepReleaseTokenLock(NewToken);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue