From 3744d67b0c460c78d3b37c6ba2c59ecd1af7983d Mon Sep 17 00:00:00 2001 From: Snaipe Date: Thu, 10 Sep 2015 05:36:03 +0200 Subject: [PATCH] Fixed typo in cr_redirect in windows-specific code --- src/posix-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix-compat.c b/src/posix-compat.c index d7894b7..55a506f 100644 --- a/src/posix-compat.c +++ b/src/posix-compat.c @@ -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]);