msi: Fix some test failures on Windows.

This commit is contained in:
Hans Leidekker 2010-04-29 09:37:44 +02:00 committed by Alexandre Julliard
parent c1ea8fb6c7
commit 7d9d6707c1
1 changed files with 8 additions and 9 deletions

View File

@ -2007,7 +2007,7 @@ static void test_property_table(void)
const char *query; const char *query;
UINT r; UINT r;
MSIHANDLE hpkg, hdb, hrec; MSIHANDLE hpkg, hdb, hrec;
char buffer[MAX_PATH]; char buffer[MAX_PATH], package[10];
DWORD sz; DWORD sz;
BOOL found; BOOL found;
@ -2050,15 +2050,14 @@ static void test_property_table(void)
r = run_query(hdb, query); r = run_query(hdb, query);
ok(r == ERROR_SUCCESS, "failed to add column\n"); ok(r == ERROR_SUCCESS, "failed to add column\n");
hpkg = package_from_db(hdb); sprintf(package, "#%i", hdb);
todo_wine r = MsiOpenPackage(package, &hpkg);
{ todo_wine ok(r != ERROR_SUCCESS, "MsiOpenPackage succeeded\n");
ok(!hpkg, "package should not be created\n"); if (r == ERROR_SUCCESS)
} MsiCloseHandle(hpkg);
MsiCloseHandle(hdb); r = MsiCloseHandle(hdb);
MsiCloseHandle(hpkg); ok(r == ERROR_SUCCESS, "MsiCloseHandle failed %u\n", r);
DeleteFile(msifile);
hdb = create_package_db(); hdb = create_package_db();
ok (hdb, "failed to create package database\n"); ok (hdb, "failed to create package database\n");