From e21115187e82991738555d560812250219af4b42 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sun, 14 Nov 2010 19:39:42 +0100 Subject: [PATCH] msi/tests: Cleanup properly on Win9x. --- dlls/msi/tests/install.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index ab732897cbc..58bc681c315 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -5896,7 +5896,6 @@ static void test_icon_table(void) record = MsiCreateRecord(1); res = MsiRecordSetStream(record, 1, "icon.ico"); ok(res == ERROR_SUCCESS, "Failed to add stream data to record: %d\n", res); - DeleteFile("icon.ico"); query = "INSERT INTO `Icon` (`Name`, `Data`) VALUES ('testicon', ?)"; res = run_query(hdb, record, query); @@ -5904,6 +5903,8 @@ static void test_icon_table(void) res = MsiCloseHandle(record); ok(res == ERROR_SUCCESS, "Failed to close record handle: %d\n", res); + /* Delete the icon file after the handle is closed to make sure it's deleted on Win9x */ + DeleteFileA("icon.ico"); res = MsiDatabaseCommit(hdb); ok(res == ERROR_SUCCESS, "Failed to commit database: %d\n", res); res = MsiCloseHandle(hdb); -- 2.11.4.GIT