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)
|
||||
{
|
||||
UINT r;
|
||||
MSIHANDLE suminfo;
|
||||
MSIHANDLE suminfo = 0;
|
||||
|
||||
/* build summmary info */
|
||||
r = MsiGetSummaryInformation(0, mstfile, 3, &suminfo);
|
||||
|
@ -2425,11 +2425,8 @@ static void set_transform_summary_info(void)
|
|||
}
|
||||
|
||||
r = MsiCloseHandle(suminfo);
|
||||
todo_wine
|
||||
{
|
||||
ok(r == ERROR_SUCCESS , "Failed to close suminfo\n");
|
||||
}
|
||||
}
|
||||
|
||||
static void generate_transform(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue