summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-21 12:13:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-21 12:13:52 (GMT)
commit7d68cb21e3a297930c783664233ac3b74f211eac (patch)
tree4acf298c16bafca95c317a56658e36b48aae2710 /win/tclWinPipe.c
parent4d100dc21f1811c0bfd773f234f59b35eb3be93a (diff)
parent694837ab79cb2b7f05fccf857081bb8a7579079e (diff)
downloadtcl-7d68cb21e3a297930c783664233ac3b74f211eac.zip
tcl-7d68cb21e3a297930c783664233ac3b74f211eac.tar.gz
tcl-7d68cb21e3a297930c783664233ac3b74f211eac.tar.bz2
Merge trunk.
Remove TclpReaddir and TclpInetNtoa from internal stub table: It's not used anywhere any more.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index f7ceabc..88497d2 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,