msi: Initialize a couple of variables.

Found by Valgrind.
This commit is contained in:
Hans Leidekker 2010-03-04 09:17:50 +01:00 committed by Alexandre Julliard
parent f370ab7e9b
commit 353035fadd
1 changed files with 3 additions and 4 deletions

View File

@ -4285,8 +4285,7 @@ static UINT ACTION_PublishFeatures(MSIPACKAGE *package)
{
MSIFEATURE *feature;
UINT rc;
HKEY hkey;
HKEY userdata = NULL;
HKEY hkey = NULL, userdata = NULL;
if (!msi_check_publish(package))
return ERROR_SUCCESS;
@ -4853,7 +4852,7 @@ static UINT ITERATE_PublishComponent(MSIRECORD *rec, LPVOID param)
MSIPACKAGE *package = param;
LPCWSTR compgroupid, component, feature, qualifier, text;
LPWSTR advertise = NULL, output = NULL;
HKEY hkey;
HKEY hkey = NULL;
UINT rc;
MSICOMPONENT *comp;
MSIFEATURE *feat;
@ -5933,7 +5932,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param )
LPWSTR data = NULL, newval = NULL, deformatted = NULL, ptr;
DWORD flags, type, size;
UINT res;
HKEY env;
HKEY env = NULL;
MSICOMPONENT *comp;
MSIRECORD *uirow;
int action = 0;