1
0
mirror of https://github.com/janet-lang/janet synced 2025-05-10 03:14:13 +00:00

Fix windows build

This commit is contained in:
Calvin Rose 2025-04-05 20:26:57 -05:00
parent 2fedb67cb3
commit e8187fdee5

View File

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