mshtml: Access document object via browser object in window QueryService implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
23b8df55f6
commit
f75d1e6855
|
@ -3306,10 +3306,10 @@ static HRESULT WINAPI HTMLWindowSP_QueryService(IServiceProvider *iface, REFGUID
|
|||
|
||||
TRACE("(%p)->(%s %s %p)\n", This, debugstr_mshtml_guid(guidService), debugstr_mshtml_guid(riid), ppv);
|
||||
|
||||
if(!This->outer_window->doc_obj)
|
||||
if(!This->outer_window || !This->outer_window->browser)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
return IServiceProvider_QueryService(&This->outer_window->doc_obj->basedoc.IServiceProvider_iface,
|
||||
return IServiceProvider_QueryService(&This->outer_window->browser->doc->basedoc.IServiceProvider_iface,
|
||||
guidService, riid, ppv);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue