mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[SDK:RTL] Fix the ACE revision check in RtlpAddKnownObjectAce
Object ACEs are supported starting from Revision 4, the current code checks if the revision is above Revision 4. An Object ACE has to be strictly set on that revision, whereas Object ACLs can be of any revision starting from ACL_REVISION4.
This commit is contained in:
parent
c175c4f47d
commit
cad780e17c
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ RtlpAddKnownObjectAce(IN PACL Acl,
|
|||
if (!RtlValidSid(Sid)) return STATUS_INVALID_SID;
|
||||
|
||||
/* Check the validity of the revision */
|
||||
if ((Acl->AclRevision > ACL_REVISION4) || (Revision > ACL_REVISION4))
|
||||
if ((Acl->AclRevision > ACL_REVISION4) || (Revision != ACL_REVISION4))
|
||||
{
|
||||
return STATUS_REVISION_MISMATCH;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue