This commit is contained in:
Jeremy Rose 2021-03-24 10:46:48 -07:00
parent 4f97b9303c
commit d874a59056

View file

@ -244,7 +244,7 @@ std::string OpenExternalOnWorkerThread(
// have been escaped. // have been escaped.
std::wstring escaped_url = std::wstring escaped_url =
L"\"" + base::UTF8ToWide(net::EscapeExternalHandlerValue(url.spec())) + L"\"" + base::UTF8ToWide(net::EscapeExternalHandlerValue(url.spec())) +
std::wstring working_dir = options.working_dir.value(); std::wstring working_dir = options.working_dir.value();
if (reinterpret_cast<ULONG_PTR>( if (reinterpret_cast<ULONG_PTR>(
ShellExecuteW(nullptr, L"open", escaped_url.c_str(), nullptr, ShellExecuteW(nullptr, L"open", escaped_url.c_str(), nullptr,