msxml3: Remove superflous re-conversion from wide chars to utf8.
This commit is contained in:
parent
adab2e5701
commit
0803167ff0
|
@ -601,17 +601,12 @@ static HRESULT WINAPI domcomment_appendData(
|
|||
/* 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
|
||||
{
|
||||
xmlChar *pNew;
|
||||
pContent = xmlChar_from_wchar( (WCHAR*)p );
|
||||
if(pContent)
|
||||
{
|
||||
pNew = xmlStrcat(xmlNodeGetContent(pDOMNode->node), pContent);
|
||||
if(pNew)
|
||||
{
|
||||
|
@ -621,9 +616,6 @@ static HRESULT WINAPI domcomment_appendData(
|
|||
else
|
||||
hr = E_FAIL;
|
||||
}
|
||||
else
|
||||
hr = E_FAIL;
|
||||
}
|
||||
}
|
||||
else
|
||||
hr = E_FAIL;
|
||||
|
|
Loading…
Reference in New Issue