SeAccessCheck() returns TRUE on success

svn path=/trunk/; revision=11044
This commit is contained in:
Gé van Geldorp 2004-09-25 08:49:06 +00:00
parent ee3726520d
commit 79c3ba475a

View file

@ -1,4 +1,4 @@
/* $Id: semgr.c,v 1.45 2004/09/25 06:41:16 arty Exp $ /* $Id: semgr.c,v 1.46 2004/09/25 08:49:06 gvg Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -852,16 +852,16 @@ NtAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
/* Lock subject context */ /* Lock subject context */
SeLockSubjectContext(&SubjectSecurityContext); SeLockSubjectContext(&SubjectSecurityContext);
if (!SeAccessCheck(SecurityDescriptor, if (SeAccessCheck(SecurityDescriptor,
&SubjectSecurityContext, &SubjectSecurityContext,
TRUE, TRUE,
DesiredAccess, DesiredAccess,
0, 0,
&PrivilegeSet, &PrivilegeSet,
GenericMapping, GenericMapping,
PreviousMode, PreviousMode,
GrantedAccess, GrantedAccess,
AccessStatus)) AccessStatus))
{ {
Status = *AccessStatus; Status = *AccessStatus;
} }