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
c3e9780d
Commit
c3e9780d
authored
Apr 20, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Corrected IXMLDOMComment appendData with a broken xmlTextConcat function.
parent
38634f0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
comment.c
dlls/msxml3/comment.c
+23
-1
No files found.
dlls/msxml3/comment.c
View file @
c3e9780d
...
...
@@ -597,10 +597,32 @@ static HRESULT WINAPI domcomment_appendData(
pContent
=
xmlChar_from_wchar
(
(
WCHAR
*
)
p
);
if
(
pContent
)
{
/* Older versions of libxml < 2.6.27 didn't correctly support
xmlTextConcat on Comment nodes. Fallback to setting the
contents directly if xmlTextConcat fails.
NOTE: if xmlTextConcat fails, pContent is destroyed.
*/
if
(
xmlTextConcat
(
pDOMNode
->
node
,
pContent
,
SysStringLen
(
p
)
)
==
0
)
hr
=
S_OK
;
else
hr
=
E_FAIL
;
{
xmlChar
*
pNew
;
pContent
=
xmlChar_from_wchar
(
(
WCHAR
*
)
p
);
if
(
pContent
)
{
pNew
=
xmlStrcat
(
xmlNodeGetContent
(
pDOMNode
->
node
),
pContent
);
if
(
pNew
)
{
xmlNodeSetContent
(
pDOMNode
->
node
,
pNew
);
hr
=
S_OK
;
}
else
hr
=
E_FAIL
;
}
else
hr
=
E_FAIL
;
}
}
else
hr
=
E_FAIL
;
...
...
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