Module: wine Branch: master Commit: 7e15e494955d632c52dd10264270ea1cd4dbc00a URL: https://source.winehq.org/git/wine.git/?a=commit;h=7e15e494955d632c52dd10264...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Jan 25 12:14:09 2019 +0100
mshtml: Add IDOMCustomEvent::initCustomEvent implementation.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 62ae8d3..0ec147d 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 = {