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
26b95dc7
Commit
26b95dc7
authored
Jul 08, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use IXMLDOMNode_get_nodeType in xmlnode_appendChild.
parent
cabbe8fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
node.c
dlls/msxml3/node.c
+4
-15
No files found.
dlls/msxml3/node.c
View file @
26b95dc7
...
...
@@ -661,29 +661,18 @@ static HRESULT WINAPI xmlnode_appendChild(
IXMLDOMNode
**
outNewChild
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
IXMLDOMNode
*
pAttr
=
NULL
;
DOMNodeType
type
;
VARIANT
var
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
newChild
,
outNewChild
);
/* Cannot Append an Attribute node. */
IUnknown_QueryInterface
(
newChild
,
&
IID_IXMLDOMNode
,
(
LPVOID
*
)
&
pAttr
);
if
(
pAttr
)
{
xmlnode
*
ThisNew
=
impl_from_IXMLDOMNode
(
pAttr
);
if
(
ThisNew
->
node
->
type
==
XML_ATTRIBUTE_NODE
)
{
hr
=
IXMLDOMNode_get_nodeType
(
newChild
,
&
type
);
if
(
FAILED
(
hr
)
||
type
==
NODE_ATTRIBUTE
)
{
if
(
outNewChild
)
*
outNewChild
=
NULL
;
IUnknown_Release
(
pAttr
);
return
E_FAIL
;
}
IUnknown_Release
(
pAttr
);
}
VariantInit
(
&
var
);
return
IXMLDOMNode_insertBefore
(
iface
,
newChild
,
var
,
outNewChild
);
}
...
...
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