mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Properly disable impersonation in PsDisableImpersonation if it was previously enabled, instead of not disabling it. (fix a wrong check). Thanks to Arty.
svn path=/trunk/; revision=23588
This commit is contained in:
@@ -814,8 +814,8 @@ PsDisableImpersonation(IN PETHREAD Thread,
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user