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

Alexandre Julliard julliard at winehq.org
Mon Nov 26 08:16:23 CST 2007


Module: wine
Branch: master
Commit: 3cf116d4e91b3f09acffb0efe3fd944dee184192
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3cf116d4e91b3f09acffb0efe3fd944dee184192

Author: Gerald Pfeifer <gerald at 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);




More information about the wine-cvs mailing list