From 2794dbc70a6b78a47181241a0fcf4db6c19dc7ab Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 10 Dec 2008 15:24:55 +0000 Subject: [PATCH] - 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 --- reactos/ntoskrnl/se/semgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/se/semgr.c b/reactos/ntoskrnl/se/semgr.c index 3fd7ca1727b..99f978e7625 100644 --- a/reactos/ntoskrnl/se/semgr.c +++ b/reactos/ntoskrnl/se/semgr.c @@ -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);