msi: Fix use of uninitialized variables.

This commit is contained in:
Hans Leidekker 2012-11-09 16:46:52 +01:00 committed by Alexandre Julliard
parent f6b22a7570
commit e15121771c
2 changed files with 2 additions and 2 deletions

View File

@ -2884,7 +2884,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param)
if (type == REG_MULTI_SZ) if (type == REG_MULTI_SZ)
{ {
BYTE *new; BYTE *new;
if (old_type != REG_MULTI_SZ) if (old_value && old_type != REG_MULTI_SZ)
{ {
msi_free( old_value ); msi_free( old_value );
old_value = NULL; old_value = NULL;

View File

@ -846,7 +846,7 @@ static HRESULT RecordImpl_Invoke(
UINT* puArgErr) UINT* puArgErr)
{ {
WCHAR *szString; WCHAR *szString;
DWORD dwLen; DWORD dwLen = 0;
UINT ret; UINT ret;
VARIANTARG varg0, varg1; VARIANTARG varg0, varg1;
HRESULT hr; HRESULT hr;