Mark Jansen : msi: Do not leak rootkey.
Alexandre Julliard
julliard at winehq.org
Wed May 15 14:32:23 CDT 2019
Module: wine
Branch: stable
Commit: 2e87908e0013cdeef22d1585f59ab705fc46a7a1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2e87908e0013cdeef22d1585f59ab705fc46a7a1
Author: Mark Jansen <mark.jansen at reactos.org>
Date: Sun Feb 17 16:52:46 2019 +0100
msi: Do not leak rootkey.
Signed-off-by: Mark Jansen <mark.jansen at reactos.org>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit c91f254a7740dacd5cb6bc3f8817cd1806bddeb4)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/msi/source.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/msi/source.c b/dlls/msi/source.c
index 904589e..e2cf7fc 100644
--- a/dlls/msi/source.c
+++ b/dlls/msi/source.c
@@ -98,6 +98,7 @@ static UINT OpenSourceKey(LPCWSTR szProduct, HKEY* key, DWORD dwOptions,
if (rc != ERROR_SUCCESS)
rc = ERROR_BAD_CONFIGURATION;
}
+ RegCloseKey(rootkey);
return rc;
}
More information about the wine-cvs
mailing list