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
2896c462
Commit
2896c462
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: previousSibling not supported for Attribute, Document and Document Fragment Nodes.
parent
f31cd308
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
node.c
dlls/msxml3/node.c
+16
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+18
-0
No files found.
dlls/msxml3/node.c
View file @
2896c462
...
@@ -359,7 +359,23 @@ static HRESULT WINAPI xmlnode_get_previousSibling(
...
@@ -359,7 +359,23 @@ static HRESULT WINAPI xmlnode_get_previousSibling(
IXMLDOMNode
**
previousSibling
)
IXMLDOMNode
**
previousSibling
)
{
{
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
xmlnode
*
This
=
impl_from_IXMLDOMNode
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
if
(
!
previousSibling
)
return
E_INVALIDARG
;
switch
(
This
->
node
->
type
)
{
/* Attribute, Document and Document Fragment Nodes do not support previousSibling */
case
XML_DOCUMENT_NODE
:
case
XML_DOCUMENT_FRAG_NODE
:
case
XML_ATTRIBUTE_NODE
:
*
previousSibling
=
NULL
;
return
S_FALSE
;
default:
return
get_node
(
This
,
"previous"
,
This
->
node
->
prev
,
previousSibling
);
return
get_node
(
This
,
"previous"
,
This
->
node
->
prev
,
previousSibling
);
}
}
}
static
HRESULT
WINAPI
xmlnode_get_nextSibling
(
static
HRESULT
WINAPI
xmlnode_get_nextSibling
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
2896c462
...
@@ -1829,6 +1829,15 @@ static void test_xmlTypes(void)
...
@@ -1829,6 +1829,15 @@ static void test_xmlTypes(void)
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
pNextChild
==
NULL
,
"pDocChild not NULL
\n
"
);
ok
(
pNextChild
==
NULL
,
"pDocChild not NULL
\n
"
);
/* test previous Sibling */
hr
=
IXMLDOMDocument_get_previousSibling
(
doc
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
pNextChild
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMDocument_get_previousSibling
(
doc
,
&
pNextChild
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
pNextChild
==
NULL
,
"pNextChild not NULL
\n
"
);
hr
=
IXMLDOMDocument_createElement
(
doc
,
_bstr_
(
"Testing"
),
&
pRoot
);
hr
=
IXMLDOMDocument_createElement
(
doc
,
_bstr_
(
"Testing"
),
&
pRoot
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
...
@@ -1891,6 +1900,15 @@ static void test_xmlTypes(void)
...
@@ -1891,6 +1900,15 @@ static void test_xmlTypes(void)
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
pNextChild
==
NULL
,
"pNextChild not NULL
\n
"
);
ok
(
pNextChild
==
NULL
,
"pNextChild not NULL
\n
"
);
/* test Previous Sibling*/
hr
=
IXMLDOMAttribute_get_previousSibling
(
pAttrubute
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
pNextChild
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMAttribute_get_previousSibling
(
pAttrubute
,
&
pNextChild
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
pNextChild
==
NULL
,
"pNextChild not NULL
\n
"
);
hr
=
IXMLDOMElement_appendChild
(
pElement
,
(
IXMLDOMNode
*
)
pAttrubute
,
&
pNewChild
);
hr
=
IXMLDOMElement_appendChild
(
pElement
,
(
IXMLDOMNode
*
)
pAttrubute
,
&
pNewChild
);
ok
(
hr
==
E_FAIL
,
"ret %08x
\n
"
,
hr
);
ok
(
hr
==
E_FAIL
,
"ret %08x
\n
"
,
hr
);
ok
(
pNewChild
==
NULL
,
"pNewChild not NULL
\n
"
);
ok
(
pNewChild
==
NULL
,
"pNewChild not NULL
\n
"
);
...
...
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