mshtml: Test for NULL nscontainer in set_event_handler_disp.

This commit is contained in:
Jacek Caban 2008-10-10 15:49:45 -05:00 committed by Alexandre Julliard
parent 46434faca3
commit e23d0e077c
1 changed files with 1 additions and 1 deletions

View File

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