Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
fd925d0e
Commit
fd925d0e
authored
Jan 17, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove child node in one place in node_insert_before().
parent
4782be7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
node.c
dlls/msxml3/node.c
+11
-15
No files found.
dlls/msxml3/node.c
View file @
fd925d0e
...
...
@@ -477,15 +477,19 @@ HRESULT node_insert_before(xmlnode *This, IXMLDOMNode *new_child, const VARIANT
xmlnode
*
before_node_obj
=
get_node_obj
(
before
);
IXMLDOMNode_Release
(
before
);
if
(
!
before_node_obj
)
return
E_FAIL
;
}
/* unlink from current parent first */
if
(
node_obj
->
parent
)
{
hr
=
IXMLDOMNode_removeChild
(
node_obj
->
parent
,
node_obj
->
iface
,
NULL
);
if
(
hr
==
S_OK
)
xmldoc_remove_orphan
(
node_obj
->
node
->
doc
,
node_obj
->
node
);
}
/* unlink from current parent first */
if
(
node_obj
->
parent
)
{
hr
=
IXMLDOMNode_removeChild
(
node_obj
->
parent
,
node_obj
->
iface
,
NULL
);
if
(
hr
==
S_OK
)
xmldoc_remove_orphan
(
node_obj
->
node
->
doc
,
node_obj
->
node
);
}
doc
=
node_obj
->
node
->
doc
;
doc
=
node_obj
->
node
->
doc
;
if
(
before
)
{
xmlnode
*
before_node_obj
=
get_node_obj
(
before
);
/* refs count including subtree */
if
(
doc
!=
before_node_obj
->
node
->
doc
)
...
...
@@ -498,14 +502,6 @@ HRESULT node_insert_before(xmlnode *This, IXMLDOMNode *new_child, const VARIANT
}
else
{
/* unlink from current parent first */
if
(
node_obj
->
parent
)
{
hr
=
IXMLDOMNode_removeChild
(
node_obj
->
parent
,
node_obj
->
iface
,
NULL
);
if
(
hr
==
S_OK
)
xmldoc_remove_orphan
(
node_obj
->
node
->
doc
,
node_obj
->
node
);
}
doc
=
node_obj
->
node
->
doc
;
if
(
doc
!=
This
->
node
->
doc
)
refcount
=
xmlnode_get_inst_cnt
(
node_obj
);
...
...
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