mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +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;
|
Teb->IsImpersonating = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set new flag */
|
|
||||||
Thread->ActiveImpersonationInfo = TRUE;
|
|
||||||
|
|
||||||
/* Check if we're in a different thread */
|
/* Check if we're in a different thread */
|
||||||
if (Thread != CurrentThread)
|
if (Thread != CurrentThread)
|
||||||
{
|
{
|
||||||
|
@ -638,6 +635,7 @@ PsImpersonateClient(IN PETHREAD Thread,
|
||||||
Impersonation->CopyOnOpen = CopyOnOpen;
|
Impersonation->CopyOnOpen = CopyOnOpen;
|
||||||
Impersonation->EffectiveOnly = EffectiveOnly;
|
Impersonation->EffectiveOnly = EffectiveOnly;
|
||||||
Impersonation->Token = Token;
|
Impersonation->Token = Token;
|
||||||
|
ObReferenceObject(Token);
|
||||||
|
|
||||||
/* Unlock the thread */
|
/* Unlock the thread */
|
||||||
PspUnlockThreadSecurityExclusive(Thread);
|
PspUnlockThreadSecurityExclusive(Thread);
|
||||||
|
|
Loading…
Reference in a new issue