Author: fireball Date: Wed Dec 10 09:24:55 2008 New Revision: 37998
URL: http://svn.reactos.org/svn/reactos?rev=37998&view=rev Log: - 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.
Modified: trunk/reactos/ntoskrnl/se/semgr.c
Modified: trunk/reactos/ntoskrnl/se/semgr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/semgr.c?rev=379... ============================================================================== --- trunk/reactos/ntoskrnl/se/semgr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/se/semgr.c [iso-8859-1] Wed Dec 10 09:24:55 2008 @@ -667,7 +667,7 @@ }
/* Check impersonation level */ - if (Token->ImpersonationLevel < SecurityAnonymous) + if (Token->ImpersonationLevel < SecurityIdentification) { DPRINT1("Invalid impersonation level\n"); ObDereferenceObject(Token);