Commit e23d0e07 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Test for NULL nscontainer in set_event_handler_disp.

parent 46434fac
......@@ -531,7 +531,7 @@ static HRESULT set_event_handler_disp(event_target_t **event_target, HTMLDocumen
return S_OK;
IDispatch_AddRef(disp);
if(event_info[eid].flags & EVENT_DEFAULTLISTENER) {
if(doc->nscontainer && (event_info[eid].flags & EVENT_DEFAULTLISTENER)) {
if(!doc->nscontainer->event_vector) {
doc->nscontainer->event_vector = heap_alloc_zero(EVENTID_LAST*sizeof(BOOL));
if(!doc->nscontainer->event_vector)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment