dlls/itss/chm_lib.c

Gerald Pfeifer gerald at pfeifer.com
Thu Nov 22 15:36:13 CST 2007


Unlike some of the recent patches, not a real bug fix here.  Just
a simplification and one warning less.

ChangeLog:
Avoid checking an unsigned value for < 0.

Index: dlls/itss/chm_lib.c
===================================================================
RCS file: /home/wine/wine/dlls/itss/chm_lib.c,v
retrieving revision 1.16
diff -u -3 -p -r1.16 chm_lib.c
--- dlls/itss/chm_lib.c	22 Oct 2007 14:57:32 -0000	1.16
+++ dlls/itss/chm_lib.c	22 Nov 2007 21:35:07 -0000
@@ -1326,7 +1326,7 @@ LONGINT64 chm_retrieve_object(struct chm
         return (Int64)0;
 
     /* starting address must be in correct range */
-    if (addr < 0  ||  addr >= ui->length)
+    if (addr >= ui->length)
         return (Int64)0;
 
     /* clip length */



More information about the wine-patches mailing list