diff options
author | davygrvy <davygrvy@noemail.net> | 2004-03-16 03:40:35 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@noemail.net> | 2004-03-16 03:40:35 (GMT) |
commit | b8e5673adb6769da38aea701a3291571c4355ddf (patch) | |
tree | 0b935f946b6159e2b44b39975e8d78f0ab0c0c34 | |
parent | 9bd262ba8df1cd399e6a54cdbf24ba2607d755f2 (diff) | |
download | tcl-b8e5673adb6769da38aea701a3291571c4355ddf.zip tcl-b8e5673adb6769da38aea701a3291571c4355ddf.tar.gz tcl-b8e5673adb6769da38aea701a3291571c4355ddf.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.
FossilOrigin-Name: 7d7363280b0f01ef84ef7127905207676b6464da
-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. */ |