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:
parent
2b8c553cc9
commit
d95da5f249
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue