Commit 7d8fd7df authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Handle failure and cleanup properly when enumerating nodes.

parent 1bce7be3
......@@ -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;
......
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