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
431e77be
Commit
431e77be
authored
Mar 03, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: CDATA nodes can't have children.
parent
2d5c9f4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
cdata.c
dlls/msxml3/cdata.c
+10
-10
domdoc.c
dlls/msxml3/tests/domdoc.c
+16
-0
No files found.
dlls/msxml3/cdata.c
View file @
431e77be
...
...
@@ -290,10 +290,9 @@ static HRESULT WINAPI domcdata_insertBefore(
IXMLDOMNode
**
outOldNode
)
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
FIXME
(
"(%p)->(%p %s %p) needs test
\n
"
,
This
,
newNode
,
debugstr_variant
(
&
refChild
),
outOldNode
);
return
node_insert_before
(
&
This
->
node
,
newNode
,
&
refChild
,
outOldNode
);
TRACE
(
"(%p)->(%p %s %p)
\n
"
,
This
,
newNode
,
debugstr_variant
(
&
refChild
),
outOldNode
);
if
(
outOldNode
)
*
outOldNode
=
NULL
;
return
E_FAIL
;
}
static
HRESULT
WINAPI
domcdata_replaceChild
(
...
...
@@ -303,10 +302,9 @@ static HRESULT WINAPI domcdata_replaceChild(
IXMLDOMNode
**
outOldNode
)
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
FIXME
(
"(%p)->(%p %p %p) needs tests
\n
"
,
This
,
newNode
,
oldNode
,
outOldNode
);
return
node_replace_child
(
&
This
->
node
,
newNode
,
oldNode
,
outOldNode
);
TRACE
(
"(%p)->(%p %p %p)
\n
"
,
This
,
newNode
,
oldNode
,
outOldNode
);
if
(
outOldNode
)
*
outOldNode
=
NULL
;
return
E_FAIL
;
}
static
HRESULT
WINAPI
domcdata_removeChild
(
...
...
@@ -315,7 +313,8 @@ static HRESULT WINAPI domcdata_removeChild(
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
child
,
oldChild
);
return
node_remove_child
(
&
This
->
node
,
child
,
oldChild
);
if
(
oldChild
)
*
oldChild
=
NULL
;
return
E_FAIL
;
}
static
HRESULT
WINAPI
domcdata_appendChild
(
...
...
@@ -324,7 +323,8 @@ static HRESULT WINAPI domcdata_appendChild(
{
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
child
,
outChild
);
return
node_append_child
(
&
This
->
node
,
child
,
outChild
);
if
(
outChild
)
*
outChild
=
NULL
;
return
E_FAIL
;
}
static
HRESULT
WINAPI
domcdata_hasChildNodes
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
431e77be
...
...
@@ -8370,6 +8370,22 @@ static void test_insertBefore(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
cdata
!=
NULL
,
"got %p
\n
"
,
cdata
);
EXPECT_NO_CHILDREN
(
cdata
);
/* attribute to cdata */
V_VT
(
&
v
)
=
VT_NULL
;
node
=
(
void
*
)
0xdeadbeef
;
hr
=
IXMLDOMNode_insertBefore
(
cdata
,
(
IXMLDOMNode
*
)
attr
,
v
,
&
node
);
ok
(
hr
==
E_FAIL
,
"got 0x%08x
\n
"
,
hr
);
ok
(
node
==
NULL
,
"got %p
\n
"
,
node
);
/* document to cdata */
V_VT
(
&
v
)
=
VT_NULL
;
node
=
(
void
*
)
0xdeadbeef
;
hr
=
IXMLDOMNode_insertBefore
(
cdata
,
(
IXMLDOMNode
*
)
doc
,
v
,
&
node
);
ok
(
hr
==
E_FAIL
,
"got 0x%08x
\n
"
,
hr
);
ok
(
node
==
NULL
,
"got %p
\n
"
,
node
);
V_VT
(
&
v
)
=
VT_NULL
;
node
=
(
void
*
)
0xdeadbeef
;
hr
=
IXMLDOMDocument_insertBefore
(
doc3
,
cdata
,
v
,
&
node
);
...
...
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