Commit d95da5f2 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent 2b8c553c
......@@ -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;
}
......
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