summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2017-04-28 13:41:13 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2017-04-28 13:41:13 (GMT)
commit319bb2448c8c5cfaea0df632b9e9114de518a258 (patch)
tree23a7bd997d7f91252971364c06c58d62e998c944 /win
parent5172297ed5caec48d06ef4af7b5711df6555e4d3 (diff)
downloadtcl-319bb2448c8c5cfaea0df632b9e9114de518a258.zip
tcl-319bb2448c8c5cfaea0df632b9e9114de518a258.tar.gz
tcl-319bb2448c8c5cfaea0df632b9e9114de518a258.tar.bz2
(cherry-pick): fix typo-bug (using wrong thread handle by set priority)
FossilOrigin-Name: 9244c37fcc7ca1015d6c5ec9c80ea9fe77438fe2
Diffstat (limited to 'win')
-rw-r--r--win/tclWinPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index ee088a5..b5f035db 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1694,7 +1694,7 @@ TclpCreateCommandChannel(
infoPtr->stopWriter = CreateEvent(NULL, TRUE, FALSE, NULL);
infoPtr->writeThread = CreateThread(NULL, 256, PipeWriterThread,
infoPtr, 0, &id);
- SetThreadPriority(infoPtr->readThread, THREAD_PRIORITY_HIGHEST);
+ SetThreadPriority(infoPtr->writeThread, THREAD_PRIORITY_HIGHEST);
infoPtr->validMask |= TCL_WRITABLE;
}