Fixed typo in cr_redirect in windows-specific code

This commit is contained in:
Snaipe 2015-09-10 05:36:03 +02:00
parent 53c9edc23e
commit 3744d67b0c

View file

@ -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]);