reactos/lib/rtl
diff -u -r1.2 -r1.3
--- acl.c 15 Jul 2004 08:14:43 -0000 1.2
+++ acl.c 25 Sep 2004 08:58:44 -0000 1.3
@@ -133,8 +133,7 @@
{
return(STATUS_ALLOTTED_SPACE_EXCEEDED);
}
- if (((PVOID)Ace + RtlLengthSid(Sid) + sizeof(ACE)) >=
- ((PVOID)Acl + Acl->AclSize))
+ if (RtlLengthSid(Sid) + sizeof(ACE) > Acl->AclSize)
{
return(STATUS_ALLOTTED_SPACE_EXCEEDED);
}
@@ -551,7 +550,7 @@
return(STATUS_INVALID_PARAMETER);
}
- AclSize = AclSize & ~(0x3);
+ AclSize = (AclSize + 3) & ~(0x3);
Acl->AclSize = AclSize;
Acl->AclRevision = AclRevision;
Acl->AceCount = 0;