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
56da338e
Commit
56da338e
authored
Mar 01, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implmented IXMLDOMCDATASection_get_data.
parent
c43b0706
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
cdata.c
dlls/msxml3/cdata.c
+14
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+7
-1
No files found.
dlls/msxml3/cdata.c
View file @
56da338e
...
...
@@ -475,8 +475,20 @@ static HRESULT WINAPI domcdata_get_data(
IXMLDOMCDATASection
*
iface
,
BSTR
*
p
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domcdata
*
This
=
impl_from_IXMLDOMCDATASection
(
iface
);
HRESULT
hr
=
E_FAIL
;
VARIANT
vRet
;
if
(
!
p
)
return
E_INVALIDARG
;
hr
=
IXMLDOMNode_get_nodeValue
(
This
->
element
,
&
vRet
);
if
(
hr
==
S_OK
)
{
*
p
=
V_BSTR
(
&
vRet
);
}
return
hr
;
}
static
HRESULT
WINAPI
domcdata_put_data
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
56da338e
...
...
@@ -2389,12 +2389,18 @@ static void test_xmlTypes(void)
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
len
==
21
,
"expected 21 got %ld
\n
"
,
len
);
/* test
length property
*/
/* test
get nodeValue
*/
hr
=
IXMLDOMCDATASection_get_nodeValue
(
pComment
,
&
var
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
"
)
),
"incorrect text string
\n
"
);
VariantClear
(
&
var
);
/* test get data */
hr
=
IXMLDOMCDATASection_get_data
(
pComment
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
"
)
),
"incorrect 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