- Impersonation level should be indeed higher that the lowest one. Fix the check accordingly. Spotted by Dmitry Gorbachev and GCC.

See issue #3939 for more details.

svn path=/trunk/; revision=37998
This commit is contained in:
Aleksey Bragin 2008-12-10 15:24:55 +00:00
parent 28cddcaf8e
commit 2794dbc70a

View file

@ -667,7 +667,7 @@ NtAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
}
/* Check impersonation level */
if (Token->ImpersonationLevel < SecurityAnonymous)
if (Token->ImpersonationLevel < SecurityIdentification)
{
DPRINT1("Invalid impersonation level\n");
ObDereferenceObject(Token);