mirror of
https://github.com/reactos/reactos.git
synced 2026-07-02 06:44:37 +08:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user