From 1032f1d2bc9ab724c6a30dd46c072ffe53694a62 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:38:56 +0000 Subject: [PATCH] Fix redirection from StdError on Windows --- subprocess.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprocess.hpp b/subprocess.hpp index 22b3903..edbde62 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -1537,7 +1537,7 @@ inline void Popen::execute_process() noexcept(false) ZeroMemory(&siStartInfo, sizeof(STARTUPINFOW)); siStartInfo.cb = sizeof(STARTUPINFOW); - siStartInfo.hStdError = this->stream_.g_hChildStd_OUT_Wr; + siStartInfo.hStdError = this->stream_.g_hChildStd_ERR_Wr; siStartInfo.hStdOutput = this->stream_.g_hChildStd_OUT_Wr; siStartInfo.hStdInput = this->stream_.g_hChildStd_IN_Rd;