summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/tclWinPipe.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 578d7eb..703f568 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPipe.c,v 1.19 2001/08/23 21:15:59 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclWinPipe.c,v 1.20 2001/09/06 01:38:02 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -2739,9 +2739,12 @@ PipeReaderThread(LPVOID arg)
HANDLE *handle = ((WinFile *) infoPtr->readFile)->handle;
DWORD count, err;
int done = 0;
- HANDLE wEvents[2] = {infoPtr->stopReader, infoPtr->startReader};
+ HANDLE wEvents[2];
DWORD dwWait;
+ wEvents[0] = infoPtr->stopReader;
+ wEvents[1] = infoPtr->startReader;
+
while (!done) {
/*
* Wait for the main thread to signal before attempting to wait