Module: wine Branch: master Commit: cf1cb30dfae79d9fe2f772b52f242b432e8eca6d URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf1cb30dfae79d9fe2f772b52f...
Author: Hans Leidekker hans@codeweavers.com Date: Mon Apr 23 15:46:30 2012 +0200
msi: Initialize hkey in msi_comp_find_prod_key.
---
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);