14 Nov
2022
14 Nov
'22
4:52 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/oleobj.c:
+ * IEventTarget implementation + */ +static inline HTMLDocumentObj *impl_from_IEventTarget(IEventTarget *iface) +{ + return CONTAINING_RECORD(iface, HTMLDocumentObj, IEventTarget_iface); +} + +HTMLDOCUMENTOBJ_IDISPATCH_METHODS(EventTarget) + +static HRESULT WINAPI DocObjEventTarget_addEventListener(IEventTarget *iface, BSTR type, IDispatch *listener, + VARIANT_BOOL capture) +{ + HTMLDocumentObj *This = impl_from_IEventTarget(iface); + + if(!This->doc_node) + return E_UNEXPECTED; How doc_node can be NULL?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1317#note_15720