ntdll: Fix the index check in RtlGetAce.

The index is zero based so we should obviously be returning
STATUS_INVALID_PARAMETER if the index is equal to the ACE count.
oldstable
Rob Shearman 2008-01-22 15:36:09 +00:00 committed by Alexandre Julliard
parent 261bf8dad5
commit 21e2caa484
1 changed files with 1 additions and 1 deletions

View File

@ -1341,7 +1341,7 @@ NTSTATUS WINAPI RtlGetAce(PACL pAcl,DWORD dwAceIndex,LPVOID *pAce )
TRACE("(%p,%d,%p)\n",pAcl,dwAceIndex,pAce);
if (dwAceIndex > pAcl->AceCount)
if (dwAceIndex >= pAcl->AceCount)
return STATUS_INVALID_PARAMETER;
ace = (PACE_HEADER)(pAcl + 1);