[WINESYNC] msi: Don't call RegCloseKey with uninitialized value.

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

wine commit id 4240e71a350b16d7ba048a839683c2023d03c831 by Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
winesync 2022-03-14 00:16:49 +01:00 committed by Mark Jansen
parent 3d6aaff254
commit 9a05b53ce8
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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;