Commit 03556680 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Fix IXMLDOMDocument::createDocumentFragment(), can't use…

msxml3: Fix IXMLDOMDocument::createDocumentFragment(), can't use IXMLDOMNode*->IXMLDOMDocumentFragment* cast.
parent 760f7ba7
......@@ -1057,13 +1057,27 @@ static HRESULT WINAPI domdoc_createDocumentFragment(
IXMLDOMDocumentFragment** frag )
{
domdoc *This = impl_from_IXMLDOMDocument2( iface );
IXMLDOMNode *node;
VARIANT type;
HRESULT hr;
TRACE("(%p)->(%p)\n", This, frag);
if (!frag) return E_INVALIDARG;
*frag = NULL;
V_VT(&type) = VT_I1;
V_I1(&type) = NODE_DOCUMENT_FRAGMENT;
return IXMLDOMDocument_createNode(iface, type, NULL, NULL, (IXMLDOMNode**)frag);
hr = IXMLDOMDocument_createNode(iface, type, NULL, NULL, &node);
if (hr == S_OK)
{
IXMLDOMNode_QueryInterface(node, &IID_IXMLDOMDocumentFragment, (void**)frag);
IXMLDOMNode_Release(node);
}
return hr;
}
......
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