Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: calling programs with spaces on Windows #4515

Merged
merged 12 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/runtime/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ static obj_res spawn(string_ref const & proc_name, array_ref<string_ref> const &

// Create the child process.
bool bSuccess = CreateProcess(
program.c_str(),
// Passing `program` here should be more robust, but would require adding a `.exe` extension
// where necessary
NULL, //program.c_str(),
Kha marked this conversation as resolved.
Show resolved Hide resolved
const_cast<char *>(command.c_str()), // command line
NULL, // process security attributes
NULL, // primary thread security attributes
Expand Down
Loading