From 7e15e494955d632c52dd10264270ea1cd4dbc00a Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 25 Jan 2019 12:14:09 +0100 Subject: [PATCH] mshtml: Add IDOMCustomEvent::initCustomEvent implementation. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/htmlevent.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c index 62ae8d3eb66..0ec147dd4c2 100644 --- a/dlls/mshtml/htmlevent.c +++ b/dlls/mshtml/htmlevent.c @@ -2116,8 +2116,15 @@ static HRESULT WINAPI DOMCustomEvent_initCustomEvent(IDOMCustomEvent *iface, BST VARIANT_BOOL cancelable, VARIANT *detail) { DOMCustomEvent *This = impl_from_IDOMCustomEvent(iface); - FIXME("(%p)->(%s %x %x %p)\n", This, debugstr_w(type), can_bubble, cancelable, debugstr_variant(detail)); - return E_NOTIMPL; + HRESULT hres; + + TRACE("(%p)->(%s %x %x %p)\n", This, debugstr_w(type), can_bubble, cancelable, debugstr_variant(detail)); + + hres = IDOMEvent_initEvent(&This->event.IDOMEvent_iface, type, can_bubble, cancelable); + if(FAILED(hres)) + return hres; + + return VariantCopy(&This->detail, detail); } static const IDOMCustomEventVtbl DOMCustomEventVtbl = {