From 98c621c1bf1a4af545802f2c2a0fcb955cbf38cb Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 6 Feb 2012 13:05:14 +0100 Subject: [PATCH] msi: Use the return value of IXMLDOMNode_get_text (clang). --- dlls/msi/msi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index f34bfc97d83..4022b3a9f08 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -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 );