msi: Initialize hkey in msi_comp_find_prod_key.
This commit is contained in:
parent
f1af03fa16
commit
cf1cb30dfa
|
@ -2112,7 +2112,7 @@ UINT WINAPI MsiQueryComponentStateA(LPCSTR szProductCode,
|
||||||
static BOOL msi_comp_find_prod_key(LPCWSTR prodcode, MSIINSTALLCONTEXT context)
|
static BOOL msi_comp_find_prod_key(LPCWSTR prodcode, MSIINSTALLCONTEXT context)
|
||||||
{
|
{
|
||||||
UINT r;
|
UINT r;
|
||||||
HKEY hkey;
|
HKEY hkey = NULL;
|
||||||
|
|
||||||
r = MSIREG_OpenProductKey(prodcode, NULL, context, &hkey, FALSE);
|
r = MSIREG_OpenProductKey(prodcode, NULL, context, &hkey, FALSE);
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
Loading…
Reference in New Issue