Jacek Caban : mshtml: Use inner window as script global object.

Alexandre Julliard julliard at winehq.org
Tue Jun 26 13:34:14 CDT 2012


Module: wine
Branch: master
Commit: d9efd6a44d709884d5666eca18539cde84893921
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d9efd6a44d709884d5666eca18539cde84893921

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Jun 26 12:33:48 2012 +0200

mshtml: Use inner window as script global object.

---

 dlls/mshtml/script.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/script.c b/dlls/mshtml/script.c
index 099266e..458499e 100644
--- a/dlls/mshtml/script.c
+++ b/dlls/mshtml/script.c
@@ -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;




More information about the wine-cvs mailing list