mshtml: Use inner window as script global object.
This commit is contained in:
parent
a8d0efc7d6
commit
d9efd6a44d
|
@ -316,11 +316,11 @@ static HRESULT WINAPI ActiveScriptSite_GetItemInfo(IActiveScriptSite *iface, LPC
|
|||
if(strcmpW(pstrName, windowW))
|
||||
return DISP_E_MEMBERNOTFOUND;
|
||||
|
||||
if(!This->window || !This->window->base.outer_window)
|
||||
if(!This->window)
|
||||
return E_FAIL;
|
||||
|
||||
/* FIXME: Return proxy object */
|
||||
*ppiunkItem = (IUnknown*)&This->window->base.outer_window->base.IHTMLWindow2_iface;
|
||||
*ppiunkItem = (IUnknown*)&This->window->base.IHTMLWindow2_iface;
|
||||
IUnknown_AddRef(*ppiunkItem);
|
||||
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in New Issue