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
675ed5a9
Commit
675ed5a9
authored
Mar 10, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IXMLDOMCDATASection_appendData.
parent
c7f3dfc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
cdata.c
dlls/msxml3/cdata.c
+26
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+15
-0
No files found.
dlls/msxml3/cdata.c
View file @
675ed5a9
...
...
@@ -584,8 +584,32 @@ static HRESULT WINAPI domcdata_appendData(
IXMLDOMCDATASection
*
iface
,
BSTR
p
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
xmlnode
*
pDOMNode
=
impl_from_IXMLDOMNode
(
(
IXMLDOMNode
*
)
This
->
element
);
xmlChar
*
pContent
;
HRESULT
hr
=
S_FALSE
;
TRACE
(
"%p
\n
"
,
iface
);
/* Nothing to do if NULL or an Empty string passed in. */
if
(
p
==
NULL
||
SysStringLen
(
p
)
==
0
)
return
S_OK
;
pContent
=
xmlChar_from_wchar
(
(
WCHAR
*
)
p
);
if
(
pContent
)
{
if
(
xmlTextConcat
(
pDOMNode
->
node
,
pContent
,
SysStringLen
(
p
)
)
==
0
)
hr
=
S_OK
;
else
{
hr
=
E_FAIL
;
xmlFree
(
pContent
);
}
}
else
hr
=
E_FAIL
;
return
hr
;
}
static
HRESULT
WINAPI
domcdata_insertData
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
675ed5a9
...
...
@@ -2500,6 +2500,21 @@ static void test_xmlTypes(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"
\\
"
)
),
"incorrect substringData string
\n
"
);
SysFreeString
(
str
);
/* test appendData */
hr
=
IXMLDOMCDATASection_appendData
(
pCDataSec
,
NULL
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IXMLDOMCDATASection_appendData
(
pCDataSec
,
_bstr_
(
""
));
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IXMLDOMCDATASection_appendData
(
pCDataSec
,
_bstr_
(
"Append"
));
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IXMLDOMCDATASection_get_text
(
pCDataSec
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
Append"
)
),
"incorrect get_text string
\n
"
);
SysFreeString
(
str
);
IXMLDOMCDATASection_Release
(
pCDataSec
);
}
...
...
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