mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
mshtml: Handle allocation failure during collection creation (Coverity).
This commit is contained in:
parent
233c8c163b
commit
a260d3efc6
@ -824,6 +824,9 @@ static IHTMLElementCollection *HTMLElementCollection_Create(HTMLElement **elems,
|
||||
{
|
||||
HTMLElementCollection *ret = heap_alloc_zero(sizeof(HTMLElementCollection));
|
||||
|
||||
if (!ret)
|
||||
return NULL;
|
||||
|
||||
ret->IHTMLElementCollection_iface.lpVtbl = &HTMLElementCollectionVtbl;
|
||||
ret->ref = 1;
|
||||
ret->elems = elems;
|
||||
|
Loading…
Reference in New Issue
Block a user