summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-03-16 03:40:36 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-03-16 03:40:36 (GMT)
commit9db32f2832d08187735f92187f0e82019c6b6e77 (patch)
tree0b935f946b6159e2b44b39975e8d78f0ab0c0c34 /win
parent5c57bce0a0440c73bd76ec096ffa1c3d0f525b9f (diff)
downloadtcl-9db32f2832d08187735f92187f0e82019c6b6e77.zip
tcl-9db32f2832d08187735f92187f0e82019c6b6e77.tar.gz
tcl-9db32f2832d08187735f92187f0e82019c6b6e77.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')
-rw-r--r--win/tclWinNotify.c5
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.
*/