Commit 02641e33 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

mshtml: Don't query for an INewWindowManager if the client site is NULL.

parent 3559c261
...@@ -2246,9 +2246,14 @@ HRESULT navigate_new_window(HTMLOuterWindow *window, IUri *uri, const WCHAR *nam ...@@ -2246,9 +2246,14 @@ HRESULT navigate_new_window(HTMLOuterWindow *window, IUri *uri, const WCHAR *nam
nsChannelBSC *bsc; nsChannelBSC *bsc;
HRESULT hres; HRESULT hres;
hres = do_query_service((IUnknown*)window->doc_obj->client, &SID_SNewWindowManager, &IID_INewWindowManager, if (window->doc_obj->client) {
(void**)&new_window_mgr); hres = do_query_service((IUnknown*)window->doc_obj->client, &SID_SNewWindowManager,
if(SUCCEEDED(hres)) { &IID_INewWindowManager, (void**)&new_window_mgr);
if (FAILED(hres)) {
FIXME("No INewWindowManager\n");
return hres;
}
hres = IUri_GetDisplayUri(window->uri_nofrag, &context_url); hres = IUri_GetDisplayUri(window->uri_nofrag, &context_url);
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
...@@ -2270,9 +2275,6 @@ HRESULT navigate_new_window(HTMLOuterWindow *window, IUri *uri, const WCHAR *nam ...@@ -2270,9 +2275,6 @@ HRESULT navigate_new_window(HTMLOuterWindow *window, IUri *uri, const WCHAR *nam
*ret = NULL; *ret = NULL;
return S_OK; return S_OK;
} }
}else {
FIXME("No INewWindowManager\n");
return E_NOTIMPL;
} }
......
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