Gerald Pfeifer : itss: Avoid checking an unsigned value for < 0.
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 08:16:25 CST 2007
Module: wine
Branch: master
Commit: b1c951b60d0f647625b772005dfd132834581276
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b1c951b60d0f647625b772005dfd132834581276
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Thu Nov 22 22:36:13 2007 +0100
itss: Avoid checking an unsigned value for < 0.
---
dlls/itss/chm_lib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c
index 67954ac..c41c423 100644
--- a/dlls/itss/chm_lib.c
+++ b/dlls/itss/chm_lib.c
@@ -1326,7 +1326,7 @@ LONGINT64 chm_retrieve_object(struct chmFile *h,
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-cvs
mailing list