Commit 3cf116d4 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

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

parent 48d83982
......@@ -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);
......
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