ntdll: Fix RtlValidAcl to accept newer ACL revisions.
This commit is contained in:
parent
866ec27044
commit
06b2da9560
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue