ntdll: Simplify condition in RtlGetAce() based on variable (un)signedness.
This commit is contained in:
parent
48d839822b
commit
3cf116d4e9
|
@ -1341,7 +1341,7 @@ NTSTATUS WINAPI RtlGetAce(PACL pAcl,DWORD dwAceIndex,LPVOID *pAce )
|
|||
|
||||
TRACE("(%p,%d,%p)\n",pAcl,dwAceIndex,pAce);
|
||||
|
||||
if ((dwAceIndex < 0) || (dwAceIndex > pAcl->AceCount))
|
||||
if (dwAceIndex > pAcl->AceCount)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
ace = (PACE_HEADER)(pAcl + 1);
|
||||
|
|
Loading…
Reference in New Issue