From 507b29a046a1741c408146971c40765b5b363684 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sun, 19 Sep 2010 17:18:25 +0200 Subject: [PATCH] atl/tests: Fix a test failure on Win95. --- dlls/atl/tests/module.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/atl/tests/module.c b/dlls/atl/tests/module.c index 1b21f6e714c..2a97ef95ad3 100644 --- a/dlls/atl/tests/module.c +++ b/dlls/atl/tests/module.c @@ -91,10 +91,14 @@ static void test_StructSize(void) ok (hres == S_OK, "AtlModuleInit with %d failed (0x%x).\n", i, (int)hres); break; default: - ok (FAILED(hres), "AtlModuleInit with %d succeeded? (0x%x).\n", i, (int)hres); + ok (FAILED(hres) || + broken((i > FIELD_OFFSET( struct _ATL_MODULEW, dwAtlBuildVer )) && (hres == S_OK)), /* Win95 */ + "AtlModuleInit with %d succeeded? (0x%x).\n", i, (int)hres); break; } } + + HeapFree (GetProcessHeap(), 0, tst); } START_TEST(module) -- 2.11.4.GIT