Commit in reactos/lib/rtl on MAIN
acl.c+2-31.2 -> 1.3
- Round up requested amount of memory instead of down
- Simplify space check, old version didn't work because of signed/unsigned issues

reactos/lib/rtl
acl.c 1.2 -> 1.3
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;
CVSspam 0.2.8