From f75d1e68550b9bc890c9f6a99efb3315840fd5d0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 14 Mar 2019 14:13:24 +0100 Subject: [PATCH] mshtml: Access document object via browser object in window QueryService implementation. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/htmlwindow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 8c0a6057ba5..dc3f24a3c00 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -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); }