https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9a05b53ce88a3896bf9fa…
commit 9a05b53ce88a3896bf9fa9acefb4efeb2fea5918
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Mon Mar 14 00:16:49 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:42 2022 +0100
[WINESYNC] msi: Don't call RegCloseKey with uninitialized value.
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 4240e71a350b16d7ba048a839683c2023d03c831 by Eric Pouech
<eric.pouech(a)gmail.com>
---
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;