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

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2017-09-21 09:59:43 -05:00 committed by Alexandre Julliard
parent 3559c261c1
commit 02641e33a9
1 changed files with 8 additions and 6 deletions

View File

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