msi: Initialize hkey in msi_comp_find_prod_key.

This commit is contained in:
Hans Leidekker 2012-04-23 15:46:30 +02:00 committed by Alexandre Julliard
parent f1af03fa16
commit cf1cb30dfa
1 changed files with 1 additions and 1 deletions

View File

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