From e15121771cd667083e4325a560440e407851e6cc Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 9 Nov 2012 16:46:52 +0100 Subject: [PATCH] msi: Fix use of uninitialized variables. --- dlls/msi/action.c | 2 +- dlls/msi/automation.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index f9ab55001b7..833bc673f7a 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -2884,7 +2884,7 @@ static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param) if (type == REG_MULTI_SZ) { BYTE *new; - if (old_type != REG_MULTI_SZ) + if (old_value && old_type != REG_MULTI_SZ) { msi_free( old_value ); old_value = NULL; diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c index e55717af7f1..5df6b954440 100644 --- a/dlls/msi/automation.c +++ b/dlls/msi/automation.c @@ -846,7 +846,7 @@ static HRESULT RecordImpl_Invoke( UINT* puArgErr) { WCHAR *szString; - DWORD dwLen; + DWORD dwLen = 0; UINT ret; VARIANTARG varg0, varg1; HRESULT hr; -- 2.11.4.GIT