From 48aadd44aefda8bf4e87607787ac189b86d7bc5b Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 16 Mar 2011 22:01:15 +0100 Subject: [PATCH] mshtml: Correctly set NULL event. --- dlls/mshtml/htmlevent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c index fc146d686cb..d1430cdee18 100644 --- a/dlls/mshtml/htmlevent.c +++ b/dlls/mshtml/htmlevent.c @@ -982,8 +982,10 @@ void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode return; event_obj = create_event(node, eid, nsevent); + doc->basedoc.window->event = &event_obj->IHTMLEventObj_iface; + }else { + doc->basedoc.window->event = NULL; } - doc->basedoc.window->event = &event_obj->IHTMLEventObj_iface; nsIDOMNode_GetNodeType(target, &node_type); nsnode = target; -- 2.11.4.GIT