diff options
author | nijtmans <nijtmans> | 2010-03-20 12:00:41 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-03-20 12:00:41 (GMT) |
commit | ebf2f83895304cba3d46bd0714bc6e1cf38fbe83 (patch) | |
tree | a5700ee719d9e09731568ff8ae92857aa9bb0aff /win/stub16.c | |
parent | 9d6f5201163bb582aa7e121e4c8b9799ec415479 (diff) | |
download | tcl-ebf2f83895304cba3d46bd0714bc6e1cf38fbe83.zip tcl-ebf2f83895304cba3d46bd0714bc6e1cf38fbe83.tar.gz tcl-ebf2f83895304cba3d46bd0714bc6e1cf38fbe83.tar.bz2 |
stub16.c Don't hide that we use the ASCII API here.
tclWinPipe.c 2 unnecessary type casts.
Diffstat (limited to 'win/stub16.c')
-rw-r--r-- | win/stub16.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win/stub16.c b/win/stub16.c index 737a53e..52460c3 100644 --- a/win/stub16.c +++ b/win/stub16.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: stub16.c,v 1.5 2005/11/04 00:06:50 dkf Exp $ + * RCS: @(#) $Id: stub16.c,v 1.6 2010/03/20 12:00:41 nijtmans Exp $ */ #define STRICT @@ -61,7 +61,7 @@ main(void) char *cmdLine; HANDLE hStdInput, hStdOutput, hStdError; HANDLE hFileInput, hFileOutput, hFileError; - STARTUPINFO si; + STARTUPINFOA si; PROCESS_INFORMATION pi; char buf[8192]; DWORD result; @@ -81,7 +81,7 @@ main(void) * stub16.exe program arg1 arg2 ... */ - cmdLine = strchr(GetCommandLine(), ' '); + cmdLine = strchr(GetCommandLineA(), ' '); if (cmdLine == NULL) { return 1; } @@ -124,7 +124,7 @@ main(void) ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); - if (CreateProcess(NULL, cmdLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, + if (CreateProcessA(NULL, cmdLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi) == FALSE) { goto cleanup; } @@ -181,17 +181,17 @@ CreateTempFile(void) char name[MAX_PATH]; SECURITY_ATTRIBUTES sa; - if (GetTempPath(sizeof(name), name) == 0) { + if (GetTempPathA(MAX_PATH, name) == 0) { return INVALID_HANDLE_VALUE; } - if (GetTempFileName(name, "tcl", 0, name) == 0) { + if (GetTempFileNameA(name, "tcl", 0, name) == 0) { return INVALID_HANDLE_VALUE; } sa.nLength = sizeof(sa); sa.lpSecurityDescriptor = NULL; sa.bInheritHandle = TRUE; - return CreateFile(name, GENERIC_READ | GENERIC_WRITE, 0, &sa, + return CreateFileA(name, GENERIC_READ | GENERIC_WRITE, 0, &sa, CREATE_ALWAYS, FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE, NULL); } |