msi: Initialize a handle in case MsiGetSummaryInformation fails.

This commit is contained in:
James Hawkins 2007-11-05 04:34:23 -05:00 committed by Alexandre Julliard
parent 21bde9d974
commit 341d1fa7b5
1 changed files with 2 additions and 5 deletions

View File

@ -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,10 +2425,7 @@ static void set_transform_summary_info(void)
}
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)