Commit 916de399 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Allocate private data when cloning from existing document.

parent 7a34094e
......@@ -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))
......
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