Commit 47086b9a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

mshtml: Fixed incorrect NULL ptr check (Coverity).

parent c1079f25
......@@ -1408,7 +1408,7 @@ static HRESULT set_event_handler_disp(EventTarget *event_target, eventid_t eid,
return S_OK;
data = get_event_target_data(event_target, TRUE);
if(!event_target)
if(!data)
return E_OUTOFMEMORY;
if(!alloc_handler_vector(data, eid, 0))
......
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