Commit 7d9d6707 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Fix some test failures on Windows.

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