Jacek Caban : mshtml: Forward setting document.location to window object.

Alexandre Julliard julliard at winehq.org
Mon Mar 15 12:19:36 CDT 2010


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sat Mar 13 16:45:45 2010 +0100

mshtml: Forward setting document.location to window object.

---

 dlls/mshtml/htmldoc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 2e2144c..5c9bb6b 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -1599,6 +1599,11 @@ static HRESULT WINAPI DocDispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID
 {
     HTMLDocument *This = DISPEX_THIS(iface);
 
+    if(This->window && id == DISPID_IHTMLDOCUMENT2_LOCATION && (wFlags & DISPATCH_PROPERTYPUT))
+        return IDispatchEx_InvokeEx(DISPATCHEX(This->window), DISPID_IHTMLWINDOW2_LOCATION, lcid, wFlags,
+                pdp, pvarRes, pei, pspCaller);
+
+
     return IDispatchEx_InvokeEx(This->dispex, id, lcid, wFlags, pdp, pvarRes, pei, pspCaller);
 }
 




More information about the wine-cvs mailing list