mshtml: Test for NULL nscontainer in set_event_handler_disp.
This commit is contained in:
parent
46434faca3
commit
e23d0e077c
|
@ -531,7 +531,7 @@ static HRESULT set_event_handler_disp(event_target_t **event_target, HTMLDocumen
|
||||||
return S_OK;
|
return S_OK;
|
||||||
IDispatch_AddRef(disp);
|
IDispatch_AddRef(disp);
|
||||||
|
|
||||||
if(event_info[eid].flags & EVENT_DEFAULTLISTENER) {
|
if(doc->nscontainer && (event_info[eid].flags & EVENT_DEFAULTLISTENER)) {
|
||||||
if(!doc->nscontainer->event_vector) {
|
if(!doc->nscontainer->event_vector) {
|
||||||
doc->nscontainer->event_vector = heap_alloc_zero(EVENTID_LAST*sizeof(BOOL));
|
doc->nscontainer->event_vector = heap_alloc_zero(EVENTID_LAST*sizeof(BOOL));
|
||||||
if(!doc->nscontainer->event_vector)
|
if(!doc->nscontainer->event_vector)
|
||||||
|
|
Loading…
Reference in New Issue