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.
This commit is contained in:
parent
261bf8dad5
commit
21e2caa484
|
@ -1341,7 +1341,7 @@ NTSTATUS WINAPI RtlGetAce(PACL pAcl,DWORD dwAceIndex,LPVOID *pAce )
|
||||||
|
|
||||||
TRACE("(%p,%d,%p)\n",pAcl,dwAceIndex,pAce);
|
TRACE("(%p,%d,%p)\n",pAcl,dwAceIndex,pAce);
|
||||||
|
|
||||||
if (dwAceIndex > pAcl->AceCount)
|
if (dwAceIndex >= pAcl->AceCount)
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
|
||||||
ace = (PACE_HEADER)(pAcl + 1);
|
ace = (PACE_HEADER)(pAcl + 1);
|
||||||
|
|
Loading…
Reference in New Issue