summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-04-11 18:07:30 (GMT)
committersebres <sebres@users.sourceforge.net>2017-04-11 18:07:30 (GMT)
commit9cdb43f156b83ecc400935cb6f424ceb55f30e75 (patch)
tree077b24c95297fc47fcc8aec9aa57f6af3841a4ff
parent9bb9d59d856e33313c1f34ec3eb2ac1e0bc145c5 (diff)
downloadtcl-9cdb43f156b83ecc400935cb6f424ceb55f30e75.zip
tcl-9cdb43f156b83ecc400935cb6f424ceb55f30e75.tar.gz
tcl-9cdb43f156b83ecc400935cb6f424ceb55f30e75.tar.bz2
fix typo- resp. copy-paste-bug (using wrong threadInfo pointer in ConsoleOutputProc, should be writer, not reader)
-rw-r--r--win/tclWinConsole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index d4893ee..da995c5 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -828,7 +828,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;