[2/5] msi: Initialize hkey in msi_comp_find_prod_key.
Hans Leidekker
hans at codeweavers.com
Mon Apr 23 08:46:30 CDT 2012
---
dlls/msi/msi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 4783573..35ffe9e 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -2112,7 +2112,7 @@ UINT WINAPI MsiQueryComponentStateA(LPCSTR szProductCode,
static BOOL msi_comp_find_prod_key(LPCWSTR prodcode, MSIINSTALLCONTEXT context)
{
UINT r;
- HKEY hkey;
+ HKEY hkey = NULL;
r = MSIREG_OpenProductKey(prodcode, NULL, context, &hkey, FALSE);
RegCloseKey(hkey);
--
1.7.5.4
More information about the wine-patches
mailing list