aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolsrc/src/vcpkg/commands.edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg/commands.edit.cpp b/toolsrc/src/vcpkg/commands.edit.cpp
index c8455bb92..720f6b14d 100644
--- a/toolsrc/src/vcpkg/commands.edit.cpp
+++ b/toolsrc/src/vcpkg/commands.edit.cpp
@@ -263,8 +263,8 @@ namespace vcpkg::Commands::Edit
if (editor_exe == "Code.exe" || editor_exe == "Code - Insiders.exe")
{
// note that we are invoking cmd silently but Code.exe is relaunched from there
- System::cmd_execute_background(
- System::Command("cmd").string_arg("/c").string_arg(cmd_line.command_line()).raw_arg("<NUL"));
+ System::cmd_execute_background(System::Command("cmd").string_arg("/c").raw_arg(
+ Strings::concat('"', cmd_line.command_line(), R"( <NUL")")));
Checks::exit_success(VCPKG_LINE_INFO);
}
#endif