Commit d2daec40 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Don't navigate if GetDisplayUri failed.

parent e783c358
......@@ -1677,8 +1677,10 @@ static void handle_extern_mime_navigation(nsChannelBSC *This)
hres = IUnknown_QueryInterface(doc_obj->webbrowser, &IID_IWebBrowserPriv, (void**)&webbrowser_priv_old);
if(SUCCEEDED(hres)) {
V_VT(&uriv) = VT_BSTR;
IUri_GetDisplayUri(uri, &V_BSTR(&uriv));
V_BSTR(&uriv) = NULL;
hres = IUri_GetDisplayUri(uri, &V_BSTR(&uriv));
if(hres == S_OK)
hres = IWebBrowserPriv_NavigateWithBindCtx(webbrowser_priv_old, &uriv, &flags, NULL, NULL, NULL, bind_ctx, NULL);
SysFreeString(V_BSTR(&uriv));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment