Author: hpoussin
Date: Sat Aug 26 12:46:18 2006
New Revision: 23715
URL:
http://svn.reactos.org/svn/reactos?rev=23715&view=rev
Log:
Fix a missing referencing in PsImpersonateClient (dereferenced in PsRevertThreadToSelf)
PspWriteTebImpersonationInfo may be used to set or to clear impersonation info =>
remove an extra assignment
Modified:
trunk/reactos/ntoskrnl/ps/security.c
Modified: trunk/reactos/ntoskrnl/ps/security.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/security.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/security.c (original)
+++ trunk/reactos/ntoskrnl/ps/security.c Sat Aug 26 12:46:18 2006
@@ -149,9 +149,6 @@
Teb->ImpersonationLocale = 0;
Teb->IsImpersonating = 0;
}
-
- /* Set new flag */
- Thread->ActiveImpersonationInfo = TRUE;
/* Check if we're in a different thread */
if (Thread != CurrentThread)
@@ -638,6 +635,7 @@
Impersonation->CopyOnOpen = CopyOnOpen;
Impersonation->EffectiveOnly = EffectiveOnly;
Impersonation->Token = Token;
+ ObReferenceObject(Token);
/* Unlock the thread */
PspUnlockThreadSecurityExclusive(Thread);