Commit 21e2caa4 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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.
parent 261bf8da
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment