Fix handle leaks in the test cases.
This commit is contained in:
parent
de71dbb2d8
commit
c877a2ef53
|
@ -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");
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue