Nikolay Sivov : msxml3: Allocate private data when cloning from existing document.
Module: wine Branch: master Commit: 916de3998ed5b0f1a3c2f755776d455ae3cbd000 URL: http://source.winehq.org/git/wine.git/?a=commit;h=916de3998ed5b0f1a3c2f75577... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Jan 23 17:36:35 2012 +0300 msxml3: Allocate private data when cloning from existing document. --- dlls/msxml3/domdoc.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 72f9a31..517b581 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -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))
participants (1)
-
Alexandre Julliard