From b1c951b60d0f647625b772005dfd132834581276 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Thu, 22 Nov 2007 22:36:13 +0100 Subject: [PATCH] itss: Avoid checking an unsigned value for < 0. --- dlls/itss/chm_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/itss/chm_lib.c b/dlls/itss/chm_lib.c index 67954ac894e..c41c42312f0 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 */