fix: #32141 register wrong command for setAsDefaultProtocolClient for windows (#32329)

Co-authored-by: Shubham-Kumar-2000 <shukhu10@gmail.com>
This commit is contained in:
trop[bot]
2022-01-04 16:08:55 +09:00
committed by GitHub
parent 9ef50c0bb8
commit e4f64afa3a

View File

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