Commit c75d739d authored by Paul Chitescu's avatar Paul Chitescu Committed by Alexandre Julliard

msxml3: Check parameters of IXMLDOMNode::insertBefore().

parent 715d78e0
...@@ -386,6 +386,9 @@ static HRESULT WINAPI xmlnode_insertBefore( ...@@ -386,6 +386,9 @@ 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))
return E_INVALIDARG;
switch(V_VT(&refChild)) switch(V_VT(&refChild))
{ {
case VT_EMPTY: case VT_EMPTY:
......
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