diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-19 15:24:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-19 15:24:11 (GMT) |
commit | 39795a1da493f0ea91a228e768c0c656156ab340 (patch) | |
tree | b9ccfdf216258033ab3a597869c0fe2aeb57ae54 /win/tclWinConsole.c | |
parent | 52f7f8443ded7a957803e75eea737fdaf04234db (diff) | |
parent | 3147adf34639c8a4c2aa49422c70fafb3b59c722 (diff) | |
download | tcl-39795a1da493f0ea91a228e768c0c656156ab340.zip tcl-39795a1da493f0ea91a228e768c0c656156ab340.tar.gz tcl-39795a1da493f0ea91a228e768c0c656156ab340.tar.bz2 |
Merge 8.6
Diffstat (limited to 'win/tclWinConsole.c')
-rw-r--r-- | win/tclWinConsole.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c index 3668ae3..e1059ca 100644 --- a/win/tclWinConsole.c +++ b/win/tclWinConsole.c @@ -1055,7 +1055,7 @@ WaitForRead( return 1; } - if (PeekConsoleInput(handle, &input, 1, &count) == FALSE) { + if (PeekConsoleInputW(handle, &input, 1, &count) == FALSE) { /* * Check to see if the peek failed because of EOF. */ @@ -1357,7 +1357,7 @@ TclWinOpenConsoleChannel( modes |= ENABLE_LINE_INPUT; SetConsoleMode(infoPtr->handle, modes); - infoPtr->reader.readyEvent = CreateEvent(NULL, TRUE, TRUE, NULL); + infoPtr->reader.readyEvent = CreateEventW(NULL, TRUE, TRUE, NULL); infoPtr->reader.thread = CreateThread(NULL, 256, ConsoleReaderThread, TclPipeThreadCreateTI(&infoPtr->reader.TI, infoPtr, infoPtr->reader.readyEvent), 0, NULL); @@ -1366,7 +1366,7 @@ TclWinOpenConsoleChannel( if (permissions & TCL_WRITABLE) { - infoPtr->writer.readyEvent = CreateEvent(NULL, TRUE, TRUE, NULL); + infoPtr->writer.readyEvent = CreateEventW(NULL, TRUE, TRUE, NULL); infoPtr->writer.thread = CreateThread(NULL, 256, ConsoleWriterThread, TclPipeThreadCreateTI(&infoPtr->writer.TI, infoPtr, infoPtr->writer.readyEvent), 0, NULL); |