mshtml: Use inner window as script global object.

This commit is contained in:
Jacek Caban 2012-06-26 12:33:48 +02:00 committed by Alexandre Julliard
parent a8d0efc7d6
commit d9efd6a44d
1 changed files with 2 additions and 2 deletions

View File

@ -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;