mshtml: Access document object via browser object in IActiveScriptSiteWindow::GetWindow.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-03-14 14:12:48 +01:00 committed by Alexandre Julliard
parent 2b8c553cc9
commit d95da5f249
1 changed files with 2 additions and 2 deletions

View File

@ -506,10 +506,10 @@ static HRESULT WINAPI ActiveScriptSiteWindow_GetWindow(IActiveScriptSiteWindow *
TRACE("(%p)->(%p)\n", This, phwnd);
if(!This->window || !This->window->base.outer_window || !This->window->base.outer_window->doc_obj)
if(!This->window || !This->window->base.outer_window)
return E_UNEXPECTED;
*phwnd = This->window->base.outer_window->doc_obj->hwnd;
*phwnd = This->window->base.outer_window->browser->doc->hwnd;
return S_OK;
}