values one might expect, which means that GetMessage() was
occasionally blocking the process. That appears to be the last of
the annoying data loss issues, so I think the Windows serial back
end actually looks vaguely reliable now. Phew.
git-svn-id: svn://svn.tartarus.org/sgt/putty@6830
cda61777-01e9-0310-a592-
d414129be87e
sfree(handles);
- if (GetMessage(&msg, NULL, 0, 0) != 1)
- break;
- do {
+ while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
if (msg.message == WM_QUIT)
goto finished; /* two-level break */
*/
if (must_close_session)
close_session();
- } while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE));
+ }
/* The messages seem unreliable; especially if we're being tricky */
term_set_focus(term, GetForegroundWindow() == hwnd);