msxml3: Create unknode object only for node types supported by msxml.
This commit is contained in:
parent
8b6cddbe25
commit
20b2e1bdb5
|
@ -2038,9 +2038,11 @@ IXMLDOMNode *create_node( xmlNodePtr node )
|
||||||
pUnk = create_doc_fragment( node );
|
pUnk = create_doc_fragment( node );
|
||||||
break;
|
break;
|
||||||
case XML_DTD_NODE:
|
case XML_DTD_NODE:
|
||||||
|
case XML_DOCUMENT_TYPE_NODE:
|
||||||
pUnk = create_doc_type( node );
|
pUnk = create_doc_type( node );
|
||||||
break;
|
break;
|
||||||
default: {
|
case XML_ENTITY_NODE:
|
||||||
|
case XML_NOTATION_NODE: {
|
||||||
unknode *new_node;
|
unknode *new_node;
|
||||||
|
|
||||||
FIXME("only creating basic node for type %d\n", node->type);
|
FIXME("only creating basic node for type %d\n", node->type);
|
||||||
|
@ -2054,6 +2056,9 @@ IXMLDOMNode *create_node( xmlNodePtr node )
|
||||||
init_xmlnode(&new_node->node, node, &new_node->IXMLDOMNode_iface, NULL);
|
init_xmlnode(&new_node->node, node, &new_node->IXMLDOMNode_iface, NULL);
|
||||||
pUnk = (IUnknown*)&new_node->IXMLDOMNode_iface;
|
pUnk = (IUnknown*)&new_node->IXMLDOMNode_iface;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
ERR("Called for unsupported node type %d\n", node->type);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IUnknown_QueryInterface(pUnk, &IID_IXMLDOMNode, (LPVOID*)&ret);
|
hr = IUnknown_QueryInterface(pUnk, &IID_IXMLDOMNode, (LPVOID*)&ret);
|
||||||
|
|
Loading…
Reference in New Issue