ntdll: RtlFirstFreeAce only return FALSE on error.

This commit is contained in:
Alistair Leslie-Hughes 2021-02-08 13:16:52 +11:00 committed by Alexandre Julliard
parent 0cbfd7ab4c
commit 0cc26c1218

View file

@ -1149,9 +1149,8 @@ BOOLEAN WINAPI RtlFirstFreeAce(
return FALSE;
ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
}
if ((BYTE *)ace >= (BYTE *)acl + acl->AclSize)
return FALSE;
*x = ace;
if ((BYTE *)ace <= (BYTE *)acl + acl->AclSize)
*x = ace;
return TRUE;
}