Commit 7c8cdd51 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't fail in IHTMLDOMNode::appendChild if AppendChild failed.

parent beec20f2
......@@ -512,6 +512,7 @@ static HRESULT WINAPI HTMLDOMNode_removeChild(IHTMLDOMNode *iface, IHTMLDOMNode
/* FIXME: Make sure that node != newChild */
*node = HTMLDOMNODE(get_node(This->doc, nsnode, TRUE));
nsIDOMNode_Release(nsnode);
IHTMLDOMNode_AddRef(*node);
return S_OK;
}
......@@ -572,8 +573,8 @@ static HRESULT WINAPI HTMLDOMNode_appendChild(IHTMLDOMNode *iface, IHTMLDOMNode
nsres = nsIDOMNode_AppendChild(This->nsnode, node_obj->nsnode, &nsnode);
if(NS_FAILED(nsres)) {
ERR("AppendChild failed: %08x\n", nsres);
return E_FAIL;
WARN("AppendChild failed: %08x\n", nsres);
nsnode = node_obj->nsnode;
}
/* FIXME: Make sure that node != newChild */
......
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