From 09ce5e80134447c5233b1d03e3093cd98f353b4e Mon Sep 17 00:00:00 2001
From: "Guy L. Albertelli" <galberte@neo.lrun.com>
Date: Sun, 24 Dec 2000 19:51:02 +0000
Subject: [PATCH] Fixed loop test for negative value.

---
 windows/spy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/windows/spy.c b/windows/spy.c
index 5888ccda6a6..fc55f3f826c 100644
--- a/windows/spy.c
+++ b/windows/spy.c
@@ -1289,7 +1289,7 @@ void SPY_DumpStructure (UINT msg, BOOL enter, LPARAM structure)
 		    if (p->len > 0) {
 			int i;
 			q = (UINT *)(pnmh + 1);
-			for(i=0; i<p->len-12; i+=16) {
+			for(i=0; i<((INT)p->len)-12; i+=16) {
 			    TRACE("NM extra [%04x] %08x %08x %08x %08x\n",
 				  i, *q, *(q+1), *(q+2), *(q+3));
 			    q += 4;
-- 
GitLab