[RTL]
[reactos.git] / reactos / sdk / lib / rtl / acl.c
index a29ab58..18fb3a6 100644 (file)
@@ -41,7 +41,7 @@ RtlFirstFreeAce(IN PACL Acl,
     }
 
     /* If the last spot is empty and still valid, return it */
-    if ((ULONG_PTR)Current < AclEnd) *FirstFreeAce = Current;
+    if ((ULONG_PTR)Current <= AclEnd) *FirstFreeAce = Current;
     return TRUE;
 }