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
91ad27ea
Commit
91ad27ea
authored
Jan 08, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jan 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: lastChild not supported for CDATASection, Comment, PI and Text Nodes.
parent
4e908f65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
node.c
dlls/msxml3/node.c
+18
-1
domdoc.c
dlls/msxml3/tests/domdoc.c
+23
-0
No files found.
dlls/msxml3/node.c
View file @
91ad27ea
...
...
@@ -334,7 +334,24 @@ static HRESULT WINAPI xmlnode_get_lastChild(
IXMLDOMNode
**
lastChild
)
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
return
get_node
(
This
,
"lastChild"
,
This
->
node
->
last
,
lastChild
);
TRACE
(
"%p
\n
"
,
This
);
if
(
!
lastChild
)
return
E_INVALIDARG
;
switch
(
This
->
node
->
type
)
{
/* CDATASection, Comment, PI and Text Nodes do not support lastChild */
case
XML_TEXT_NODE
:
case
XML_CDATA_SECTION_NODE
:
case
XML_PI_NODE
:
case
XML_COMMENT_NODE
:
*
lastChild
=
NULL
;
return
S_FALSE
;
default:
return
get_node
(
This
,
"lastChild"
,
This
->
node
->
last
,
lastChild
);
}
}
static
HRESULT
WINAPI
xmlnode_get_previousSibling
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
91ad27ea
...
...
@@ -347,6 +347,7 @@ static void test_domdoc( void )
IXMLDOMText
*
nodetext
=
NULL
;
IXMLDOMComment
*
node_comment
=
NULL
;
IXMLDOMAttribute
*
node_attr
=
NULL
;
IXMLDOMNode
*
nodeChild
=
NULL
;
VARIANT_BOOL
b
;
VARIANT
var
;
BSTR
str
;
...
...
@@ -508,6 +509,17 @@ static void test_domdoc( void )
ok
(
r
==
E_INVALIDARG
,
"returns %08x
\n
"
,
r
);
r
=
IXMLDOMDocument_createTextNode
(
doc
,
str
,
&
nodetext
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
if
(
nodetext
)
{
/* Text Last Child Checks */
r
=
IXMLDOMText_get_lastChild
(
nodetext
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"ret %08x
\n
"
,
r
);
nodeChild
=
(
IXMLDOMNode
*
)
0x1
;
r
=
IXMLDOMText_get_lastChild
(
nodetext
,
&
nodeChild
);
ok
(
r
==
S_FALSE
,
"ret %08x
\n
"
,
r
);
ok
(
nodeChild
==
NULL
,
"nodeChild not NULL
\n
"
);
}
IXMLDOMText_Release
(
nodetext
);
SysFreeString
(
str
);
...
...
@@ -516,6 +528,17 @@ static void test_domdoc( void )
ok
(
r
==
E_INVALIDARG
,
"returns %08x
\n
"
,
r
);
r
=
IXMLDOMDocument_createComment
(
doc
,
szComment
,
&
node_comment
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
if
(
node_comment
)
{
/* Last Child Checks */
r
=
IXMLDOMComment_get_lastChild
(
node_comment
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"ret %08x
\n
"
,
r
);
nodeChild
=
(
IXMLDOMNode
*
)
0x1
;
r
=
IXMLDOMComment_get_lastChild
(
node_comment
,
&
nodeChild
);
ok
(
r
==
S_FALSE
,
"ret %08x
\n
"
,
r
);
ok
(
nodeChild
==
NULL
,
"pLastChild not NULL
\n
"
);
}
IXMLDOMText_Release
(
node_comment
);
/* test Create Attribute */
...
...
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