Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2b5ddbfe
Commit
2b5ddbfe
authored
Nov 21, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Properly update node to doc link when cloning.
parent
2f5123cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
node.c
dlls/msxml3/node.c
+1
-1
domdoc.c
dlls/msxml3/tests/domdoc.c
+6
-1
No files found.
dlls/msxml3/node.c
View file @
2b5ddbfe
...
...
@@ -595,7 +595,7 @@ HRESULT node_clone(xmlnode *This, VARIANT_BOOL deep, IXMLDOMNode **cloneNode)
clone
=
xmlCopyNode
(
This
->
node
,
deep
?
1
:
2
);
if
(
clone
)
{
clone
->
doc
=
This
->
node
->
doc
;
xmlSetTreeDoc
(
clone
,
This
->
node
->
doc
)
;
xmldoc_add_orphan
(
clone
->
doc
,
clone
);
node
=
create_node
(
clone
);
...
...
dlls/msxml3/tests/domdoc.c
View file @
2b5ddbfe
...
...
@@ -6073,7 +6073,7 @@ static void test_cloneNode(void )
IXMLDOMNamedNodeMap
*
mapAttr
;
LONG
length
,
length1
;
LONG
attr_cnt
,
attr_cnt1
;
IXMLDOMNode
*
node
;
IXMLDOMNode
*
node
,
*
attr
;
IXMLDOMNode
*
node_clone
;
IXMLDOMNode
*
node_first
;
HRESULT
hr
;
...
...
@@ -6134,6 +6134,11 @@ static void test_cloneNode(void )
hr
=
IXMLDOMNamedNodeMap_get_length
(
mapAttr
,
&
attr_cnt1
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
attr_cnt1
==
3
,
"got %d
\n
"
,
attr_cnt1
);
/* now really get some attributes from cloned element */
attr
=
NULL
;
hr
=
IXMLDOMNamedNodeMap_getNamedItem
(
mapAttr
,
_bstr_
(
"id"
),
&
attr
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
IXMLDOMNode_Release
(
attr
);
IXMLDOMNamedNodeMap_Release
(
mapAttr
);
ok
(
length
==
length1
,
"wrong Child count (%d, %d)
\n
"
,
length
,
length1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment