Detlef Riekenberg : msi: Remove redundant NULL check before SysFreeString.

Alexandre Julliard julliard at winehq.org
Tue Sep 23 09:28:18 CDT 2008


Module: wine
Branch: master
Commit: 88a5bdb858e9efc6085f4ff08917f3ff2f222790
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=88a5bdb858e9efc6085f4ff08917f3ff2f222790

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Sun Sep 21 15:58:28 2008 +0200

msi: Remove redundant NULL check before SysFreeString.

---

 dlls/msi/automation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c
index c15126a..60224b6 100644
--- a/dlls/msi/automation.c
+++ b/dlls/msi/automation.c
@@ -441,7 +441,7 @@ static HRESULT WINAPI AutomationObject_Invoke(
     if (pVarResult == &varResultDummy) VariantClear(pVarResult);
 
     /* Free function name if we retrieved it */
-    if (bstrName) SysFreeString(bstrName);
+    SysFreeString(bstrName);
 
     TRACE("Returning 0x%08x, %s\n", hr, SUCCEEDED(hr) ? "ok" : "not ok");
 




More information about the wine-cvs mailing list