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
f9c5856c
Commit
f9c5856c
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: Implement IXMLDOMText_appendData.
parent
9238ccca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+15
-0
text.c
dlls/msxml3/text.c
+26
-2
No files found.
dlls/msxml3/tests/domdoc.c
View file @
f9c5856c
...
...
@@ -638,6 +638,21 @@ static void test_domdoc( void )
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"
\\
"
)
),
"incorrect substringData string
\n
"
);
SysFreeString
(
str
);
/* test appendData */
r
=
IXMLDOMText_appendData
(
nodetext
,
NULL
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMText_appendData
(
nodetext
,
_bstr_
(
""
));
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMText_appendData
(
nodetext
,
_bstr_
(
"Append"
));
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMText_get_text
(
nodetext
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
Append"
)
),
"incorrect get_text string
\n
"
);
SysFreeString
(
str
);
IXMLDOMText_Release
(
nodetext
);
}
SysFreeString
(
str
);
...
...
dlls/msxml3/text.c
View file @
f9c5856c
...
...
@@ -584,8 +584,32 @@ static HRESULT WINAPI domtext_appendData(
IXMLDOMText
*
iface
,
BSTR
p
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domtext
*
This
=
impl_from_IXMLDOMText
(
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
domtext_insertData
(
...
...
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