[PATCH] Old versions of libXML (less than 2.6.27) had a bug that failed in xmlTextConcat when used on Comment nodes.
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sun Mar 30 04:13:28 CDT 2008
---
dlls/msxml3/comment.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/comment.c b/dlls/msxml3/comment.c
index c4d37f2..8360188 100644
--- a/dlls/msxml3/comment.c
+++ b/dlls/msxml3/comment.c
@@ -597,10 +597,17 @@ static HRESULT WINAPI domcomment_appendData(
pContent = xmlChar_from_wchar( (WCHAR*)p );
if(pContent)
{
+#if LIBXML_VERSION >= 20627
if(xmlTextConcat(pDOMNode->node, pContent, SysStringLen(p) ) == 0)
hr = S_OK;
else
hr = E_FAIL;
+#else
+ xmlChar *pNew;
+ pNew = xmlStrcat(xmlNodeGetContent(pDOMNode->node), pContent);
+ xmlNodeSetContent(pDOMNode->node, pNew);
+ hr = S_OK;
+#endif
}
else
hr = E_FAIL;
--
1.5.4.1
--------------090507040700010403070301--
More information about the wine-patches
mailing list