mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:51:11 +00:00
mshtml: Handle failure and cleanup properly when enumerating nodes.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
1bce7be3e1
commit
7d8fd7df8f
|
@ -135,8 +135,9 @@ static HRESULT WINAPI HTMLDOMChildrenCollectionEnum_Next(IEnumVARIANT *iface, UL
|
|||
hres = get_node(nsnode, TRUE, &node);
|
||||
nsIDOMNode_Release(nsnode);
|
||||
if(FAILED(hres)) {
|
||||
ERR("get_node failed: %08lx\n", hres);
|
||||
break;
|
||||
while(fetched--)
|
||||
VariantClear(rgVar+fetched);
|
||||
return hres;
|
||||
}
|
||||
|
||||
V_VT(rgVar+fetched) = VT_DISPATCH;
|
||||
|
|
Loading…
Reference in a new issue