Eric Pouech : msi: Don't call RegCloseKey with uninitialized value.

Alexandre Julliard julliard at winehq.org
Wed Jan 19 15:57:45 CST 2022


Module: wine
Branch: master
Commit: 4240e71a350b16d7ba048a839683c2023d03c831
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4240e71a350b16d7ba048a839683c2023d03c831

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Mon Jan 17 10:46:21 2022 +0100

msi: Don't call RegCloseKey with uninitialized value.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/action.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 9a47c2b068b..8ee9420af55 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -6973,7 +6973,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;




More information about the wine-cvs mailing list