atl/tests: Fix a test failure on Win95.

This commit is contained in:
Paul Vriens 2010-09-19 17:18:25 +02:00 committed by Alexandre Julliard
parent e48b81036a
commit 507b29a046
1 changed files with 5 additions and 1 deletions

View File

@ -91,10 +91,14 @@ static void test_StructSize(void)
ok (hres == S_OK, "AtlModuleInit with %d failed (0x%x).\n", i, (int)hres); ok (hres == S_OK, "AtlModuleInit with %d failed (0x%x).\n", i, (int)hres);
break; break;
default: 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; break;
} }
} }
HeapFree (GetProcessHeap(), 0, tst);
} }
START_TEST(module) START_TEST(module)