mshtml: Correctly set NULL event.

This commit is contained in:
Jacek Caban 2011-03-16 22:01:15 +01:00 committed by Alexandre Julliard
parent 504b7c34d6
commit 48aadd44ae
1 changed files with 3 additions and 1 deletions

View File

@ -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;