msi: Fix potential uninitialized use of substg.

This commit is contained in:
Marcus Meissner 2008-09-28 22:27:29 +02:00 committed by Alexandre Julliard
parent 4193d78029
commit 628b8e7630
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ done:
static UINT STORAGES_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, UINT mask)
{
MSISTORAGESVIEW *sv = (MSISTORAGESVIEW *)view;
IStorage *stg, *substg;
IStorage *stg, *substg = NULL;
IStream *stm;
LPWSTR name = NULL;
HRESULT hr;
@ -236,7 +236,7 @@ static UINT STORAGES_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec,
done:
msi_free(name);
IStorage_Release(substg);
if (substg) IStorage_Release(substg);
IStorage_Release(stg);
IStream_Release(stm);