ntdll: Fix RtlValidAcl to accept newer ACL revisions.

This commit is contained in:
Rob Shearman 2007-10-23 13:39:02 +01:00 committed by Alexandre Julliard
parent 866ec27044
commit 06b2da9560
2 changed files with 2 additions and 3 deletions

View File

@ -2300,14 +2300,12 @@ static void test_acls(void)
ok(ret, "InitializeAcl(ACL_REVISION3) failed with error %d\n", GetLastError());
ret = IsValidAcl(pAcl);
todo_wine
ok(ret, "IsValidAcl failed with error %d\n", GetLastError());
ret = InitializeAcl(pAcl, sizeof(buffer), ACL_REVISION4);
ok(ret, "InitializeAcl(ACL_REVISION4) failed with error %d\n", GetLastError());
ret = IsValidAcl(pAcl);
todo_wine
ok(ret, "IsValidAcl failed with error %d\n", GetLastError());
SetLastError(0xdeadbeef);

View File

@ -1278,7 +1278,8 @@ BOOLEAN WINAPI RtlValidAcl(PACL pAcl)
PACE_HEADER ace;
int i;
if (pAcl->AclRevision != ACL_REVISION)
if (pAcl->AclRevision < MIN_ACL_REVISION ||
pAcl->AclRevision > MAX_ACL_REVISION)
ret = FALSE;
else
{