Commit 3948541a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msxml3: Fixed if nesting / ptr checking problems in xmlnode_transformNode.

parent 8524cc17
......@@ -1310,12 +1310,8 @@ static HRESULT WINAPI xmlnode_transformNode(
if(pOutput)
{
htmlDocContentDumpOutput(pOutput, result->doc, NULL);
if(pOutput)
{
pContent = xmlBufferContent(pOutput->buffer);
*xmlString = bstr_from_xmlChar(pContent);
}
pContent = xmlBufferContent(pOutput->buffer);
*xmlString = bstr_from_xmlChar(pContent);
xmlOutputBufferClose(pOutput);
}
}
......@@ -1332,13 +1328,12 @@ static HRESULT WINAPI xmlnode_transformNode(
{
pContent = xmlBufferContent(pXmlBuf);
*xmlString = bstr_from_xmlChar(pContent);
xmlBufferFree(pXmlBuf);
}
xmlBufferFree(pXmlBuf);
}
}
xmlFreeDoc(result);
}
xmlFreeDoc(result);
/* libxslt "helpfully" frees the XML document the stylesheet was
generated from, too */
xsltSS->doc = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment