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?