msi: Use the return value of IXMLDOMNode_get_text (clang).

oldstable
Hans Leidekker 2012-02-06 13:05:14 +01:00 committed by Alexandre Julliard
parent f8b29a0685
commit 98c621c1bf
1 changed files with 5 additions and 2 deletions

View File

@ -613,8 +613,11 @@ static UINT MSI_ApplicablePatchXML( MSIPACKAGE *package, IXMLDOMDocument *desc )
{
hr = IXMLDOMNode_get_text( node, &s );
IXMLDOMNode_Release( node );
if (!strcmpW( s, product_code )) r = ERROR_SUCCESS;
SysFreeString(s);
if (hr == S_OK)
{
if (!strcmpW( s, product_code )) r = ERROR_SUCCESS;
SysFreeString( s );
}
}
IXMLDOMNodeList_Release( list );