https://bugs.winehq.org/show_bug.cgi?id=43728
--- Comment #20 from Anton Romanov theli.ua@gmail.com --- Created attachment 60208 --> https://bugs.winehq.org/attachment.cgi?id=60208 test patch
So I was trying to come up with the patch that would show this behaviour. As seen windows doesn't pump messages either, however it does PEEK at messages so that they will not trigger MsgWaitForMultipleObjects again, if our CoWaitForMultipleHandles would also do that then it will not be an issue as CoWaitForMultipleHandles will not look at those messages in the queue again.
This change to test makes test fail on wine but it succeeds on windows.