Jacek Caban : mshtml: Added IHTMLWindow3::detachEvent implementation.

Alexandre Julliard julliard at winehq.org
Tue Apr 17 13:31:49 CDT 2012


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Apr 17 12:11:01 2012 +0200

mshtml: Added IHTMLWindow3::detachEvent implementation.

---

 dlls/mshtml/htmlwindow.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index 3ee2273..a0cf108 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -1431,8 +1431,15 @@ static HRESULT WINAPI HTMLWindow3_attachEvent(IHTMLWindow3 *iface, BSTR event, I
 static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, IDispatch *pDisp)
 {
     HTMLWindow *This = impl_from_IHTMLWindow3(iface);
-    FIXME("(%p)->()\n", This);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->()\n", This);
+
+    if(!This->doc) {
+        FIXME("No document\n");
+        return E_FAIL;
+    }
+
+    return detach_event(This->doc->body_event_target, &This->doc->basedoc, event, pDisp);
 }
 
 static HRESULT window_set_timer(HTMLWindow *This, VARIANT *expr, LONG msec, VARIANT *language,




More information about the wine-cvs mailing list