Author: ion
Date: Wed Aug 16 07:17:21 2006
New Revision: 23588
URL: 
http://svn.reactos.org/svn/reactos?rev=23588&view=rev
Log:
- Properly disable impersonation in PsDisableImpersonation if it was previously enabled,
instead of not disabling it. (fix a wrong check). Thanks to Arty.
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 Wed Aug 16 07:17:21 2006
@@ -814,8 +814,8 @@
                                            OldValue);
         } while (NewValue != OldValue);
-        /* Did someone disable behind our back? */
-        if (!(NewValue & CT_ACTIVE_IMPERSONATION_INFO_BIT))
+        /* Make sure nobody disabled it behind our back */
+        if (NewValue & CT_ACTIVE_IMPERSONATION_INFO_BIT)
         {
             /* Copy the old state */
             Impersonation = Thread->ImpersonationInfo;