[Base] Fix dangling pointer in LaunchWebBrowser.

[Base] Fix dangling pointer in LaunchWebBrowser. Fixes #1614.
This commit is contained in:
gibbed 2020-11-15 14:34:54 -06:00 committed by Rick Gibbed
parent a4e5c4cecf
commit 362251df0b
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ namespace xe {
void LaunchWebBrowser(const std::string& url) {
auto temp = xe::to_utf16(url);
ShellExecuteW(nullptr, L"open", reinterpret_cast<LPCWSTR>(url.c_str()),
ShellExecuteW(nullptr, L"open", reinterpret_cast<LPCWSTR>(temp.c_str()),
nullptr, nullptr, SW_SHOWNORMAL);
}