https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9a05b53ce88a3896bf9fa9acefb4efeb2fea5918

commit 9a05b53ce88a3896bf9fa9acefb4efeb2fea5918
Author:     winesync <[email protected]>
AuthorDate: Mon Mar 14 00:16:49 2022 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Sun Mar 20 19:28:42 2022 +0100

    [WINESYNC] msi: Don't call RegCloseKey with uninitialized value.
    
    Signed-off-by: Eric Pouech <[email protected]>
    Signed-off-by: Hans Leidekker <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id 4240e71a350b16d7ba048a839683c2023d03c831 by Eric Pouech 
<[email protected]>
---
 dll/win32/msi/action.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/win32/msi/action.c b/dll/win32/msi/action.c
index 0640d9ae1c8..98e503694ba 100644
--- a/dll/win32/msi/action.c
+++ b/dll/win32/msi/action.c
@@ -7001,7 +7001,7 @@ static UINT ITERATE_RemoveEnvironmentString( MSIRECORD 
*rec, LPVOID param )
     LPCWSTR name, value, component;
     WCHAR *p, *q, *deformatted = NULL, *new_value = NULL;
     DWORD flags, type, size, len, len_value = 0, len_new_value;
-    HKEY env;
+    HKEY env = NULL;
     MSICOMPONENT *comp;
     MSIRECORD *uirow;
     int action = 0;

Reply via email to