mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: command string for windows protocol handler (#33009)
Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
@@ -66,7 +66,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;
|
||||
|
||||
Reference in New Issue
Block a user