Index: src/plugin/PluginClass.cpp |
diff --git a/src/plugin/PluginClass.cpp b/src/plugin/PluginClass.cpp |
index ec695ee2de3dbcf13be0979675f0e95a015dc82c..ead88dc2817b0c8ff814ddea3cf688d4d9496d48 100644 |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1231,7 +1231,8 @@ void CPluginClass::DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, U |
vFlags.vt = VT_I4; |
vFlags.intVal = navOpenInNewTab; |
- BSTR urlToNavigate = BString(UserSettingsFileUrl()); |
+ auto userSettingsFileUrl = UserSettingsFileUrl(); |
+ ATL::CComBSTR urlToNavigate(static_cast<int>(userSettingsFileUrl.length()), userSettingsFileUrl.c_str()); |
HRESULT hr = browser->Navigate(urlToNavigate, &vFlags, NULL, NULL, NULL); |
if (FAILED(hr)) |
{ |