From cf1cb30dfae79d9fe2f772b52f242b432e8eca6d Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 23 Apr 2012 15:46:30 +0200 Subject: [PATCH] msi: Initialize hkey in msi_comp_find_prod_key. --- dlls/msi/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 478357300e8..35ffe9efd19 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); -- 2.11.4.GIT