ntdll: Don't read beyond the end of the array on the last ace iteration in RtlValidAcl.

This commit is contained in:
Rob Shearman 2009-11-29 10:28:32 +00:00 committed by Alexandre Julliard
parent a94265e5a9
commit f2f50f18dc

View file

@ -1328,7 +1328,8 @@ BOOLEAN WINAPI RtlValidAcl(PACL pAcl)
ret = FALSE;
break;
}
ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
if (i != pAcl->AceCount)
ace = (PACE_HEADER)(((BYTE*)ace)+ace->AceSize);
}
}
}