Fix redirection from StdError on Windows

This commit is contained in:
Hennadii Stepanov 2023-12-01 18:38:56 +00:00
parent d19cce111c
commit 1032f1d2bc
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -1537,7 +1537,7 @@ inline void Popen::execute_process() noexcept(false)
ZeroMemory(&siStartInfo, sizeof(STARTUPINFOW)); ZeroMemory(&siStartInfo, sizeof(STARTUPINFOW));
siStartInfo.cb = 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.hStdOutput = this->stream_.g_hChildStd_OUT_Wr;
siStartInfo.hStdInput = this->stream_.g_hChildStd_IN_Rd; siStartInfo.hStdInput = this->stream_.g_hChildStd_IN_Rd;