Fix handle leaks in the test cases.

This commit is contained in:
Mike McCormack 2005-09-26 09:55:12 +00:00 committed by Alexandre Julliard
parent de71dbb2d8
commit c877a2ef53
2 changed files with 5 additions and 0 deletions

View File

@ -613,6 +613,7 @@ static void test_formatrecord(void)
ok( r == ERROR_SUCCESS, "format failed\n");
ok( sz == 11, "size wrong\n");
ok( 0 == strcmp(buffer,"boo [~] hoo"), "wrong output (%s)\n",buffer);
MsiCloseHandle(hrec);
}
static void test_formatrecord_package(void)
@ -782,6 +783,8 @@ static void test_formatrecord_package(void)
ok( sz == 9, "size wrong(%li)\n",sz);
ok( 0 == strcmp(buffer,"boo hoo h"), "wrong output (%s)\n",buffer);
MsiCloseHandle(hrec);
r = MsiCloseHandle(package);
ok(r==ERROR_SUCCESS, "Unable to close package\n");

View File

@ -322,6 +322,8 @@ static void test_gettargetpath_bad(void)
r = MsiGetTargetPath( hpkg, "boo", buffer, NULL );
ok( r == ERROR_DIRECTORY, "wrong return val\n");
MsiCloseHandle( hpkg );
}
START_TEST(package)