From e821f9d724959bcfb393af6d6497528a1beb87e0 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 2 Mar 2009 02:34:08 -0800 Subject: [PATCH] msi: Add missing calls to MsiViewClose. --- dlls/msi/tests/db.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index ab10da9c9dd..29a87f6a743 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -1070,8 +1070,8 @@ static MSIHANDLE get_column_info(MSIHANDLE hdb, const char *query, MSICOLINFO ty if( r == ERROR_SUCCESS ) { MsiViewGetColumnInfo( hview, type, &rec ); - MsiViewClose(hview); } + MsiViewClose(hview); MsiCloseHandle(hview); return rec; } @@ -1101,9 +1101,8 @@ static UINT get_columns_table_type(MSIHANDLE hdb, const char *table, UINT field) type = MsiRecordGetInteger( rec, 4 ); MsiCloseHandle( rec ); } - - MsiViewClose(hview); } + MsiViewClose(hview); MsiCloseHandle(hview); return type; } @@ -1325,6 +1324,7 @@ static void test_longstrings(void) r = MsiViewFetch(hview, &hrec); ok(r == ERROR_SUCCESS, "MsiViewFetch failed\n"); + MsiViewClose(hview); MsiCloseHandle(hview); r = MsiRecordGetString(hrec, 2, NULL, &len); @@ -1425,6 +1425,7 @@ static void test_streamtable(void) ok( r == ERROR_SUCCESS, "Failed to execute view: %d\n", r); MsiCloseHandle( rec ); + MsiViewClose( view ); MsiCloseHandle( view ); r = MsiDatabaseOpenView( hdb, @@ -1453,6 +1454,7 @@ static void test_streamtable(void) r = MsiViewFetch( view, &rec ); ok( r == ERROR_NO_MORE_ITEMS, "Expected ERROR_NO_MORE_ITEMS, got %d\n", r); + MsiViewClose( view ); MsiCloseHandle( view ); MsiCloseHandle( hdb ); DeleteFile(msifile); @@ -1714,6 +1716,7 @@ static void test_msiimport(void) ok(i == -2147483640, "Expected -2147483640, got %d\n", i); MsiCloseHandle(rec); + MsiViewClose(view); MsiCloseHandle(view); query = "SELECT * FROM `TwoPrimary`"; @@ -2042,6 +2045,7 @@ static void test_handle_limit(void) for (i=0; i