mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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
|
else
|
||||||
builder.appendff("\"{}\" ", options.executable);
|
builder.appendff("\"{}\" ", options.executable);
|
||||||
|
|
||||||
builder.join(' ', options.arguments);
|
for (auto arg : options.arguments)
|
||||||
|
builder.appendff("\"{}\" ", arg);
|
||||||
|
|
||||||
builder.append('\0');
|
builder.append('\0');
|
||||||
ByteBuffer command_line = TRY(builder.to_byte_buffer());
|
ByteBuffer command_line = TRY(builder.to_byte_buffer());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user