diff options
author | redman <redman> | 1999-04-21 20:08:17 (GMT) |
---|---|---|
committer | redman <redman> | 1999-04-21 20:08:17 (GMT) |
commit | d2a3e887caf524096070bbe8667b700520357b4b (patch) | |
tree | b034b66986b8c1e3a7b065bf1ac1a4fd83bc8686 /win/stub16.c | |
parent | 7ab2eee54bc6371397693ad5a6610e8d5efc4cc8 (diff) | |
download | tcl-d2a3e887caf524096070bbe8667b700520357b4b.zip tcl-d2a3e887caf524096070bbe8667b700520357b4b.tar.gz tcl-d2a3e887caf524096070bbe8667b700520357b4b.tar.bz2 |
Merge with 8.1.0 branch
Diffstat (limited to 'win/stub16.c')
-rw-r--r-- | win/stub16.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/stub16.c b/win/stub16.c index 44e18d6..b4d53ef 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.2 1998/09/14 18:40:19 stanton Exp $ + * RCS: @(#) $Id: stub16.c,v 1.3 1999/04/21 20:10:09 redman Exp $ */ #define STRICT @@ -132,9 +132,9 @@ main() WaitForInputIdle(pi.hProcess, 5000); WaitForSingleObject(pi.hProcess, INFINITE); + GetExitCodeProcess(pi.hProcess, &result); CloseHandle(pi.hProcess); CloseHandle(pi.hThread); - result = 0; if (hFileOutput != INVALID_HANDLE_VALUE) { SetFilePointer(hFileOutput, 0, 0, FILE_BEGIN); |