[Base] Fix dangling pointer in LaunchWebBrowser.
[Base] Fix dangling pointer in LaunchWebBrowser. Fixes #1614.
This commit is contained in:
@@ -15,7 +15,7 @@ namespace xe {
|
|||||||
|
|
||||||
void LaunchWebBrowser(const std::string& url) {
|
void LaunchWebBrowser(const std::string& url) {
|
||||||
auto temp = xe::to_utf16(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);
|
nullptr, nullptr, SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user