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
c48ad710
Commit
c48ad710
authored
Feb 28, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IXMLDOMText_get_data.
parent
a1f5fef8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+6
-0
text.c
dlls/msxml3/text.c
+14
-2
No files found.
dlls/msxml3/tests/domdoc.c
View file @
c48ad710
...
...
@@ -574,6 +574,12 @@ static void test_domdoc( void )
r
=
IXMLDOMText_put_data
(
nodetext
,
_bstr_
(
"This &is a ; test <>
\\
"
));
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
/* get data Tests */
r
=
IXMLDOMText_get_data
(
nodetext
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
"
)
),
"incorrect put_data string
\n
"
);
SysFreeString
(
str
);
/* Confirm XML text is good */
r
=
IXMLDOMText_get_xml
(
nodetext
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
...
...
dlls/msxml3/text.c
View file @
c48ad710
...
...
@@ -475,8 +475,20 @@ static HRESULT WINAPI domtext_get_data(
IXMLDOMText
*
iface
,
BSTR
*
p
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domtext
*
This
=
impl_from_IXMLDOMText
(
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
domtext_put_data
(
...
...
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