Commit c877a2ef authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix handle leaks in the test cases.

parent de71dbb2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment