ntdll: Simplify condition in RtlGetAce() based on variable (un)signedness.

This commit is contained in:
Gerald Pfeifer 2007-11-22 01:07:29 +01:00 committed by Alexandre Julliard
parent 48d839822b
commit 3cf116d4e9
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 < 0) || (dwAceIndex > pAcl->AceCount))
if (dwAceIndex > pAcl->AceCount)
return STATUS_INVALID_PARAMETER;
ace = (PACE_HEADER)(pAcl + 1);