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
2adcef79
Commit
2adcef79
authored
Nov 02, 2008
by
Michael Karcher
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Simplify IXMLDOMNodeMap::removeNamedItem.
parent
813da724
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
nodemap.c
dlls/msxml3/nodemap.c
+9
-7
No files found.
dlls/msxml3/nodemap.c
View file @
2adcef79
...
...
@@ -289,7 +289,7 @@ static HRESULT WINAPI xmlnodemap_removeNamedItem(
{
xmlnodemap
*
This
=
impl_from_IXMLDOMNamedNodeMap
(
iface
);
xmlChar
*
element_name
;
xmlAttrPtr
attr
,
attr_copy
;
xmlAttrPtr
attr
;
xmlNodePtr
node
;
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_w
(
name
),
namedItem
);
...
...
@@ -314,13 +314,15 @@ static HRESULT WINAPI xmlnodemap_removeNamedItem(
if
(
namedItem
)
{
attr_copy
=
xmlCopyProp
(
NULL
,
attr
);
attr_copy
->
doc
=
node
->
doc
;
/* The cast here is OK, xmlFreeNode handles xmlAttrPtr pointers */
xmldoc_add_orphan
(
attr_copy
->
doc
,
(
xmlNodePtr
)
attr_copy
);
*
namedItem
=
create_node
(
(
xmlNodePtr
)
attr_copy
);
xmlUnlinkNode
(
(
xmlNodePtr
)
attr
);
xmldoc_add_orphan
(
attr
->
doc
,
(
xmlNodePtr
)
attr
);
*
namedItem
=
create_node
(
(
xmlNodePtr
)
attr
);
}
else
{
if
(
xmlRemoveProp
(
attr
)
==
-
1
)
ERR
(
"xmlRemoveProp failed
\n
"
);
}
xmlRemoveProp
(
attr
);
return
S_OK
;
}
...
...
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