dlls/comctl32/imagelist.c -- simplify

Gerald Pfeifer gerald at pfeifer.com
Sat Nov 3 09:12:32 CDT 2007


Checking an unsigned value for < 0 is always false.

ChangeLog:
Remove check which never triggers.

Index: dlls/comctl32/imagelist.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/imagelist.c,v
retrieving revision 1.140
diff -u -3 -p -r1.140 imagelist.c
--- dlls/comctl32/imagelist.c	1 Jun 2007 11:46:35 -0000	1.140
+++ dlls/comctl32/imagelist.c	3 Nov 2007 14:11:24 -0000
@@ -2570,8 +2570,6 @@ ImageList_SetImageCount (HIMAGELIST himl
 
     if (!is_valid(himl))
 	return FALSE;
-    if (iImageCount < 0)
-        return FALSE;
     if (himl->cMaxImage > iImageCount)
     {
         himl->cCurImage = iImageCount;



More information about the wine-patches mailing list