From 4d1d359c2bc0a6c57728653bd8484dd59ed92f57 Mon Sep 17 00:00:00 2001 From: Martin Walker Date: Fri, 19 Feb 1999 16:50:24 +0000 Subject: [PATCH] Fixed message filtering check. --- windows/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/queue.c b/windows/queue.c index d3f30f34496..988016a90bf 100644 --- a/windows/queue.c +++ b/windows/queue.c @@ -1050,7 +1050,7 @@ QMSG* QUEUE_FindMsg( MESSAGEQUEUE * msgQueue, HWND32 hwnd, int first, int last ) if (!first && !last) break; /* found it */ - if ((msg->message >= first) && (msg->message <= last)) + if ((msg->message >= first) && (!last || (msg->message <= last))) break; /* found it */ } }