msxml3: Return E_INVALIDARG on bad parameter.

This commit is contained in:
Alistair Leslie-Hughes 2007-11-11 22:35:35 +11:00 committed by Alexandre Julliard
parent d5fb2315cb
commit 8de2d5290a
1 changed files with 4 additions and 1 deletions

View File

@ -671,7 +671,10 @@ static HRESULT WINAPI domdoc_get_documentElement(
IXMLDOMNode *element_node;
HRESULT hr;
TRACE("%p\n", This);
TRACE("%p %p\n", This, This->node);
if(!DOMElement)
return E_INVALIDARG;
*DOMElement = NULL;