Commit 4d1d359c authored by Martin Walker's avatar Martin Walker Committed by Alexandre Julliard

Fixed message filtering check.

parent 3426d853
......@@ -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 */
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment