Fixed typo in cr_redirect in windows-specific code
This commit is contained in:
parent
53c9edc23e
commit
3744d67b0c
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ void cr_redirect(int fd_kind, s_pipe_handle *pipe, int fd_index) {
|
|||
cr_std_fd fd = get_std_fd(fd_kind);
|
||||
#ifdef VANILLA_WIN32
|
||||
CloseHandle(GetStdHandle(fd));
|
||||
SetStdHandle(fd, pipe->fds[fd_index]);
|
||||
SetStdHandle(fd, pipe->fhs[fd_index]);
|
||||
#else
|
||||
close(fd);
|
||||
dup2(fd, pipe->fds[fd_index]);
|
||||
|
|
Loading…
Add table
Reference in a new issue