From 7fbf828afa36500c5294262dde5ae5d34f7f9b90 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 14 Nov 2007 16:05:17 +1100 Subject: [PATCH] msxml: Allow insertBefore to have a NULL output parameter. --- dlls/msxml3/node.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 61d5ab2306a..298deff9816 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -373,7 +373,7 @@ static HRESULT WINAPI xmlnode_insertBefore( TRACE("(%p)->(%p,var,%p)\n",This,newChild,outNewChild); - if (!(newChild && outNewChild)) + if (!newChild) return E_INVALIDARG; switch(V_VT(&refChild)) @@ -414,7 +414,9 @@ static HRESULT WINAPI xmlnode_insertBefore( IXMLDOMNode_Release(new); IXMLDOMNode_AddRef(newChild); - *outNewChild = newChild; + if(outNewChild) + *outNewChild = newChild; + TRACE("ret S_OK\n"); return S_OK; }