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
3bdf4553
Commit
3bdf4553
authored
Oct 05, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Simplify IXMLDOMNode::removeChild.
parent
30351482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
node.c
dlls/msxml3/node.c
+1
-10
No files found.
dlls/msxml3/node.c
View file @
3bdf4553
...
@@ -620,8 +620,6 @@ static HRESULT WINAPI xmlnode_removeChild(
...
@@ -620,8 +620,6 @@ static HRESULT WINAPI xmlnode_removeChild(
{
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
xmlNode
*
child_node_ptr
;
xmlNode
*
child_node_ptr
;
HRESULT
hr
;
IXMLDOMNode
*
child
;
TRACE
(
"%p->(%p, %p)
\n
"
,
This
,
childNode
,
oldChild
);
TRACE
(
"%p->(%p, %p)
\n
"
,
This
,
childNode
,
oldChild
);
...
@@ -630,22 +628,15 @@ static HRESULT WINAPI xmlnode_removeChild(
...
@@ -630,22 +628,15 @@ static HRESULT WINAPI xmlnode_removeChild(
if
(
oldChild
)
if
(
oldChild
)
*
oldChild
=
NULL
;
*
oldChild
=
NULL
;
hr
=
IXMLDOMNode_QueryInterface
(
childNode
,
&
IID_IXMLDOMNode
,
(
LPVOID
)
&
child
);
child_node_ptr
=
impl_from_IXMLDOMNode
(
childNode
)
->
node
;
if
(
FAILED
(
hr
))
return
hr
;
child_node_ptr
=
impl_from_IXMLDOMNode
(
child
)
->
node
;
if
(
child_node_ptr
->
parent
!=
This
->
node
)
if
(
child_node_ptr
->
parent
!=
This
->
node
)
{
{
WARN
(
"childNode %p is not a child of %p
\n
"
,
childNode
,
iface
);
WARN
(
"childNode %p is not a child of %p
\n
"
,
childNode
,
iface
);
IXMLDOMNode_Release
(
child
);
return
E_INVALIDARG
;
return
E_INVALIDARG
;
}
}
xmlUnlinkNode
(
child_node_ptr
);
xmlUnlinkNode
(
child_node_ptr
);
IXMLDOMNode_Release
(
child
);
if
(
oldChild
)
if
(
oldChild
)
{
{
IXMLDOMNode_AddRef
(
childNode
);
IXMLDOMNode_AddRef
(
childNode
);
...
...
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