diff options
| author | davygrvy@pobox.com <davygrvy> | 2004-03-16 03:40:36 (GMT) |
|---|---|---|
| committer | davygrvy@pobox.com <davygrvy> | 2004-03-16 03:40:36 (GMT) |
| commit | d2b0b84b761a352cd7308ea1fd29ab93f69a1506 (patch) | |
| tree | 0b935f946b6159e2b44b39975e8d78f0ab0c0c34 /win/tclWinNotify.c | |
| parent | 5ca4623700667e40d1a70261adfae868ff5d7f61 (diff) | |
| download | tcl-d2b0b84b761a352cd7308ea1fd29ab93f69a1506.zip tcl-d2b0b84b761a352cd7308ea1fd29ab93f69a1506.tar.gz tcl-d2b0b84b761a352cd7308ea1fd29ab93f69a1506.tar.bz2 | |
* win/tclWinNotify.c: Fixed a mistake where the return value of
MsgWaitForMultipleObjectsEx for "a message is in the queue" wasn't
accurate. I removed the check on the case result==(WAIT_OBJECT_0 + 1)
This was having the error of falling into GetMessage and waiting
there by accident, which wasn't alertable through Tcl_AlertNotifier.
I'll do some more study on this and try to find-out why.
Diffstat (limited to 'win/tclWinNotify.c')
| -rw-r--r-- | win/tclWinNotify.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tclWinNotify.c b/win/tclWinNotify.c index 02e8d64..d06289d 100644 --- a/win/tclWinNotify.c +++ b/win/tclWinNotify.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinNotify.c,v 1.14 2004/03/03 10:44:41 davygrvy Exp $ + * RCS: @(#) $Id: tclWinNotify.c,v 1.15 2004/03/16 03:40:36 davygrvy Exp $ */ #include "tclWinInt.h" @@ -477,8 +477,7 @@ again: * Check to see if there are any messages to process. */ - if (result == (WAIT_OBJECT_0 + 1) || - PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { + if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { /* * Retrieve and dispatch the first message. */ |
