Jacek Caban : mshtml: Added IDOMEvent::removeEventListener implementation.
Alexandre Julliard
julliard at winehq.org
Wed Oct 25 13:58:43 CDT 2017
Module: wine
Branch: master
Commit: 8e32ee6aad43a9dfc7c7f7f05b14795c0fdb0560
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8e32ee6aad43a9dfc7c7f7f05b14795c0fdb0560
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Oct 25 18:13:42 2017 +0200
mshtml: Added IDOMEvent::removeEventListener implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlevent.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index 3334324..778b692 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)
More information about the wine-cvs
mailing list