Marcus Meissner : msi: Removed unnecessary NULL check.

Alexandre Julliard julliard at winehq.org
Tue Dec 22 09:58:59 CST 2009


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Dec 22 09:32:03 2009 +0100

msi: Removed unnecessary NULL check.

---

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 7904770..10338ad 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -5090,14 +5090,8 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
             lstrcatW(newval, value);
         }
     }
-
-    if (newval)
-    {
-        TRACE("setting %s to %s\n", debugstr_w(name), debugstr_w(newval));
-        res = RegSetValueExW(env, name, 0, type, (LPVOID)newval, size);
-    }
-    else
-        res = ERROR_SUCCESS;
+    TRACE("setting %s to %s\n", debugstr_w(name), debugstr_w(newval));
+    res = RegSetValueExW(env, name, 0, type, (LPVOID)newval, size);
 
 done:
     if (env) RegCloseKey(env);




More information about the wine-cvs mailing list