diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-06-19 22:46:10 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-06-19 22:46:10 (GMT) |
commit | ccccb754c0f55dc8e8250ab8c3a2019c96c6add2 (patch) | |
tree | 46d515be0b19875b9fe6bfe2fbb50571dbc9c2fc /win/tclWinPipe.c | |
parent | 60c48207275926d160a50ab91108f28ae7475040 (diff) | |
parent | 5539977620b9c358a365280e4d0db6a816537b71 (diff) | |
download | tcl-ccccb754c0f55dc8e8250ab8c3a2019c96c6add2.zip tcl-ccccb754c0f55dc8e8250ab8c3a2019c96c6add2.tar.gz tcl-ccccb754c0f55dc8e8250ab8c3a2019c96c6add2.tar.bz2 |
merge trunk
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r-- | win/tclWinPipe.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index d418a3e..13caba9 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1049,15 +1049,8 @@ TclpCreateProcess( * sink. */ - if ((TclWinGetPlatformId() == VER_PLATFORM_WIN32_WINDOWS) - && (applType == APPL_DOS)) { - if (CreatePipe(&h, &startInfo.hStdOutput, &secAtts, 0) != FALSE) { - CloseHandle(h); - } - } else { - startInfo.hStdOutput = CreateFileA("NUL:", GENERIC_WRITE, 0, - &secAtts, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); - } + startInfo.hStdOutput = CreateFile(TEXT("NUL:"), GENERIC_WRITE, 0, + &secAtts, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); } else { DuplicateHandle(hProcess, outputHandle, hProcess, &startInfo.hStdOutput, 0, TRUE, DUPLICATE_SAME_ACCESS); @@ -1076,7 +1069,7 @@ TclpCreateProcess( * sink. */ - startInfo.hStdError = CreateFileA("NUL:", GENERIC_WRITE, 0, + startInfo.hStdError = CreateFile(TEXT("NUL:"), GENERIC_WRITE, 0, &secAtts, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); } else { DuplicateHandle(hProcess, errorHandle, hProcess, &startInfo.hStdError, |