Gerald Pfeifer : ntdll: Simplify condition in RtlGetAce() based on variable (un)signedness.
Module: wine Branch: master Commit: 3cf116d4e91b3f09acffb0efe3fd944dee184192 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cf116d4e91b3f09acffb0efe3... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Thu Nov 22 01:07:29 2007 +0100 ntdll: Simplify condition in RtlGetAce() based on variable (un)signedness. --- dlls/ntdll/sec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/sec.c b/dlls/ntdll/sec.c index 2815838..fd5ed7a 100644 --- a/dlls/ntdll/sec.c +++ b/dlls/ntdll/sec.c @@ -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);
participants (1)
-
Alexandre Julliard