Module: wine Branch: master Commit: b1c951b60d0f647625b772005dfd132834581276 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b1c951b60d0f647625b772005d...
Author: Gerald Pfeifer gerald@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 */