msi: Fix a test that fails in win95.

This commit is contained in:
James Hawkins 2008-09-30 20:56:34 -05:00 committed by Alexandre Julliard
parent 4749ee2662
commit 48e6e584d3
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}