Skip to content

Commit

Permalink
fix win32 test stdout redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Aug 7, 2019
1 parent d4ddc41 commit f23f96e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/setup_transfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,10 @@ pid_type async_run(char const* cmdline)
STARTUPINFOA startup;
memset(&startup, 0, sizeof(startup));
startup.cb = sizeof(startup);
startup.dwFlags = STARTF_USESTDHANDLES;
startup.hStdInput = GetStdHandle(STD_INPUT_HANDLE);
startup.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
startup.hStdError = GetStdHandle(STD_INPUT_HANDLE);
startup.hStdError = GetStdHandle(STD_OUTPUT_HANDLE);
int ret = CreateProcessA(NULL, buf, NULL, NULL, TRUE
, CREATE_NEW_PROCESS_GROUP, NULL, NULL, &startup, &pi);

Expand Down

0 comments on commit f23f96e

Please sign in to comment.