Fixed message filtering check.
This commit is contained in:
parent
3426d85319
commit
4d1d359c2b
|
@ -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 */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue