summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-28 13:21:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-28 13:21:26 (GMT)
commitaafeac491b16d1c69904aaecf5e71878155ce1d3 (patch)
tree745da7a28af4ec2ea21daf0e17e1751954d0505a /win
parent53d0751164446530cccc61a7f39b045b11c5000a (diff)
parentc519b824fa166cc910bc7ef59252c1c184e4ba84 (diff)
downloadtcl-aafeac491b16d1c69904aaecf5e71878155ce1d3.zip
tcl-aafeac491b16d1c69904aaecf5e71878155ce1d3.tar.gz
tcl-aafeac491b16d1c69904aaecf5e71878155ce1d3.tar.bz2
merge core-8-6-branch
Diffstat (limited to 'win')
-rw-r--r--win/tclWinConsole.c2
-rw-r--r--win/tclWinPipe.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index 5ce8a2b..c97e3e4 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -808,7 +808,7 @@ ConsoleOutputProc(
int *errorCode) /* Where to store error code. */
{
ConsoleInfo *infoPtr = instanceData;
- ConsoleThreadInfo *threadInfo = &infoPtr->reader;
+ ConsoleThreadInfo *threadInfo = &infoPtr->writer;
DWORD bytesWritten, timeout;
*errorCode = 0;
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 4666deb..4775418 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1618,7 +1618,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;
}