mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
Fix a missing referencing in PsImpersonateClient (dereferenced in PsRevertThreadToSelf)
PspWriteTebImpersonationInfo may be used to set or to clear impersonation info => remove an extra assignment svn path=/trunk/; revision=23715
This commit is contained in:
parent
617e78ebf0
commit
916f69a7cb
|
@ -150,9 +150,6 @@ PspWriteTebImpersonationInfo(IN PETHREAD Thread,
|
|||
Teb->IsImpersonating = 0;
|
||||
}
|
||||
|
||||
/* Set new flag */
|
||||
Thread->ActiveImpersonationInfo = TRUE;
|
||||
|
||||
/* Check if we're in a different thread */
|
||||
if (Thread != CurrentThread)
|
||||
{
|
||||
|
@ -638,6 +635,7 @@ PsImpersonateClient(IN PETHREAD Thread,
|
|||
Impersonation->CopyOnOpen = CopyOnOpen;
|
||||
Impersonation->EffectiveOnly = EffectiveOnly;
|
||||
Impersonation->Token = Token;
|
||||
ObReferenceObject(Token);
|
||||
|
||||
/* Unlock the thread */
|
||||
PspUnlockThreadSecurityExclusive(Thread);
|
||||
|
|
Loading…
Reference in a new issue