msi: Initialize a handle in case MsiGetSummaryInformation fails.
This commit is contained in:
parent
21bde9d974
commit
341d1fa7b5
|
@ -2388,7 +2388,7 @@ static UINT run_query(MSIHANDLE hdb, MSIHANDLE hrec, const char *query)
|
||||||
static void set_transform_summary_info(void)
|
static void set_transform_summary_info(void)
|
||||||
{
|
{
|
||||||
UINT r;
|
UINT r;
|
||||||
MSIHANDLE suminfo;
|
MSIHANDLE suminfo = 0;
|
||||||
|
|
||||||
/* build summmary info */
|
/* build summmary info */
|
||||||
r = MsiGetSummaryInformation(0, mstfile, 3, &suminfo);
|
r = MsiGetSummaryInformation(0, mstfile, 3, &suminfo);
|
||||||
|
@ -2425,10 +2425,7 @@ static void set_transform_summary_info(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
r = MsiCloseHandle(suminfo);
|
r = MsiCloseHandle(suminfo);
|
||||||
todo_wine
|
ok(r == ERROR_SUCCESS , "Failed to close suminfo\n");
|
||||||
{
|
|
||||||
ok(r == ERROR_SUCCESS , "Failed to close suminfo\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void generate_transform(void)
|
static void generate_transform(void)
|
||||||
|
|
Loading…
Reference in New Issue