Skip to content
Snippets Groups Projects
Commit 7d8fd7df authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard
Browse files

mshtml: Handle failure and cleanup properly when enumerating nodes.

parent 1bce7be3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment