msi: Fix potential uninitialized use of substg.
This commit is contained in:
parent
4193d78029
commit
628b8e7630
|
@ -184,7 +184,7 @@ done:
|
||||||
static UINT STORAGES_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, UINT mask)
|
static UINT STORAGES_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, UINT mask)
|
||||||
{
|
{
|
||||||
MSISTORAGESVIEW *sv = (MSISTORAGESVIEW *)view;
|
MSISTORAGESVIEW *sv = (MSISTORAGESVIEW *)view;
|
||||||
IStorage *stg, *substg;
|
IStorage *stg, *substg = NULL;
|
||||||
IStream *stm;
|
IStream *stm;
|
||||||
LPWSTR name = NULL;
|
LPWSTR name = NULL;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
@ -236,7 +236,7 @@ static UINT STORAGES_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec,
|
||||||
done:
|
done:
|
||||||
msi_free(name);
|
msi_free(name);
|
||||||
|
|
||||||
IStorage_Release(substg);
|
if (substg) IStorage_Release(substg);
|
||||||
IStorage_Release(stg);
|
IStorage_Release(stg);
|
||||||
IStream_Release(stm);
|
IStream_Release(stm);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue