simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon Nov 11 23:01:47 GMT 2013


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10057
Date:           2013-11-11 23:01:47 +0000 (Mon, 11 Nov 2013)

Log message (10 lines):
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.

Modified files:
U   putty/windows/window.c

Links:
http://svn.tartarus.org/sgt/?rev=10057&view=rev
http://svn.tartarus.org/sgt/putty/windows/window.c?rev=10057&r1=10056&r2=10057



More information about the tartarus-commits mailing list