mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Correctly pass arguments with spaces to Process on Windows
This commit is contained in:
@@ -48,7 +48,9 @@ ErrorOr<Process> Process::spawn(ProcessSpawnOptions const& options)
|
||||
else
|
||||
builder.appendff("\"{}\" ", options.executable);
|
||||
|
||||
builder.join(' ', options.arguments);
|
||||
for (auto arg : options.arguments)
|
||||
builder.appendff("\"{}\" ", arg);
|
||||
|
||||
builder.append('\0');
|
||||
ByteBuffer command_line = TRY(builder.to_byte_buffer());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user