Commit 7fbf828a authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml: Allow insertBefore to have a NULL output parameter.

parent 0a751332
...@@ -373,7 +373,7 @@ static HRESULT WINAPI xmlnode_insertBefore( ...@@ -373,7 +373,7 @@ static HRESULT WINAPI xmlnode_insertBefore(
TRACE("(%p)->(%p,var,%p)\n",This,newChild,outNewChild); TRACE("(%p)->(%p,var,%p)\n",This,newChild,outNewChild);
if (!(newChild && outNewChild)) if (!newChild)
return E_INVALIDARG; return E_INVALIDARG;
switch(V_VT(&refChild)) switch(V_VT(&refChild))
...@@ -414,7 +414,9 @@ static HRESULT WINAPI xmlnode_insertBefore( ...@@ -414,7 +414,9 @@ static HRESULT WINAPI xmlnode_insertBefore(
IXMLDOMNode_Release(new); IXMLDOMNode_Release(new);
IXMLDOMNode_AddRef(newChild); IXMLDOMNode_AddRef(newChild);
if(outNewChild)
*outNewChild = newChild; *outNewChild = newChild;
TRACE("ret S_OK\n"); TRACE("ret S_OK\n");
return S_OK; return S_OK;
} }
......
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