]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Replace GetQueueStatus with PeekMessage(PM_NOREMOVE).
authorSimon Tatham <anakin@pobox.com>
Mon, 11 Nov 2013 23:01:47 +0000 (23:01 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 11 Nov 2013 23:01:47 +0000 (23:01 +0000)
commit5d2de060979e7c9f72c95837130c53d35c99d826
tree49b8ced9c2b776abd27277577eb9d0484544404b
parentc6010ef64c776855189861c9931bce28a3f58f1b
Replace GetQueueStatus with PeekMessage(PM_NOREMOVE).

A couple of users report that my recent reworking of the Windows
top-level message loop has led to messages occasionally being lost,
and MsgWaitForMultipleObjects blocking when it ought to have been
called with a zero timeout. I haven't been able to reproduce this
myself, but according to one reporter, PeekMessage(PM_NOREMOVE) is
effective at checking for a non-empty message queue in a way that
GetQueueStatus is not. Switch to using that instead. Thanks to Eric
Flumerfelt for debugging and testing help.

git-svn-id: http://svn.tartarus.org/sgt/putty@10057 cda61777-01e9-0310-a592-d414129be87e
windows/window.c