diff --git a/src/core/os.c b/src/core/os.c index b2387979..dbb3695c 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -1235,7 +1235,7 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, JanetExecuteMode mode) { } else if (new_err != NULL) { startupInfo.hStdError = new_err; } else if (stderr_is_stdout) { - startupInfo.hStdError = startupInfo.hStdOut; + startupInfo.hStdError = startupInfo.hStdOutput; } else { startupInfo.hStdError = (HANDLE) _get_osfhandle(2); }