msxml3: Allocate private data when cloning from existing document.

This commit is contained in:
Nikolay Sivov 2012-01-23 17:36:35 +03:00 committed by Alexandre Julliard
parent 7a34094e6e
commit 916de3998e

View file

@ -2082,7 +2082,9 @@ static HRESULT WINAPI domdoc_load(
if(pNewDoc)
{
domdoc *newDoc = impl_from_IXMLDOMDocument3( pNewDoc );
xmldoc = xmlCopyDoc(get_doc(newDoc), 1);
xmldoc->_private = create_priv();
hr = attach_xmldoc(This, xmldoc);
if(SUCCEEDED(hr))
@ -3444,8 +3446,7 @@ HRESULT DOMDocument_create(MSXML_VERSION version, IUnknown *pUnkOuter, void **pp
if(!xmldoc)
return E_OUTOFMEMORY;
xmldoc->_private = create_priv();
priv_from_xmlDocPtr(xmldoc)->properties = create_properties(version);
xmldoc_init(xmldoc, version);
hr = get_domdoc_from_xmldoc(xmldoc, (IXMLDOMDocument3**)ppObj);
if(FAILED(hr))