Fixed message filtering check.

oldstable
Martin Walker 1999-02-19 16:50:24 +00:00 committed by Alexandre Julliard
parent 3426d85319
commit 4d1d359c2b
1 changed files with 1 additions and 1 deletions

View File

@ -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 */
}
}