From 48e6e584d312026def717d8c6cfa0a0561074c90 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 30 Sep 2008 20:56:34 -0500 Subject: [PATCH] msi: Fix a test that fails in win95. --- dlls/msi/tests/msi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 2b00314d725..aae8cfc9cbe 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -435,6 +435,8 @@ static void test_MsiGetFileHash(void) for (i = 0; i < sizeof(hash_data) / sizeof(hash_data[0]); i++) { + int ret; + create_file(name, hash_data[i].data, hash_data[i].size); memset(&hash, 0, sizeof(MSIFILEHASHINFO)); @@ -442,7 +444,11 @@ static void test_MsiGetFileHash(void) r = pMsiGetFileHashA(name, 0, &hash); ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); - ok(!memcmp(&hash, &hash_data[i].hash, HASHSIZE), "Hash incorrect\n"); + + ret = memcmp(&hash, &hash_data[i].hash, HASHSIZE); + ok(ret == 0 || + broken(ret != 0), /* win95 */ + "Hash incorrect\n"); DeleteFile(name); } -- 2.11.4.GIT