Browse Source

fix: command string for windows protocol handler (#33010)

Co-authored-by: deepak1556 <[email protected]>
trop[bot] 3 years ago
parent
commit
23d22d7a5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/browser_win.cc

+ 1 - 1
shell/browser/browser_win.cc

@@ -67,7 +67,7 @@ bool GetProtocolLaunchPath(gin::Arguments* args, std::wstring* exe) {
   std::vector<std::wstring> launch_args;
   if (args->GetNext(&launch_args) && !launch_args.empty())
     *exe = base::StringPrintf(L"\"%ls\" \"%ls\" \"%%1\"", exe->c_str(),
-                              base::JoinString(launch_args, L" ").c_str());
+                              base::JoinString(launch_args, L"\"  \"").c_str());
   else
     *exe = base::StringPrintf(L"\"%ls\" \"%%1\"", exe->c_str());
   return true;