[PATCH 6/9] mshtml: Added IDOMEvent::removeEventListener implementation.

Jacek Caban <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Jacek Caban <[email protected]>
---
 dlls/mshtml/htmlevent.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
0006-mshtml-Added-IDOMEvent-removeEventListener-implementa.diff (text/x-patch, 1018 B)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index 33343249b2..778b692976 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -2125,8 +2125,18 @@ static HRESULT WINAPI EventTarget_removeEventListener(IEventTarget *iface, BSTR
                                                       IDispatch *listener, VARIANT_BOOL capture)
 {
     EventTarget *This = impl_from_IEventTarget(iface);
-    FIXME("(%p)->(%s %p %x)\n", This, debugstr_w(type), listener, capture);
-    return E_NOTIMPL;
+    eventid_t eid;
+
+    TRACE("(%p)->(%s %p %x)\n", This, debugstr_w(type), listener, capture);
+
+    eid = str_to_eid(type);
+    if(eid == EVENTID_LAST) {
+        FIXME("Unsupported on event %s\n", debugstr_w(type));
+        return E_NOTIMPL;
+    }
+
+    remove_event_listener(This, eid, capture ? LISTENER_TYPE_CAPTURE : LISTENER_TYPE_BUBBLE, listener);
+    return S_OK;
 }
 
 static HRESULT WINAPI EventTarget_dispatchEvent(IEventTarget *iface, IDOMEvent *event, VARIANT_BOOL *result)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.