atl/tests: Fix a test failure on Win95.
authorPaul Vriens <Paul.Vriens.Wine@gmail.com>
Sun, 19 Sep 2010 15:18:25 +0000 (17:18 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 20 Sep 2010 11:01:18 +0000 (13:01 +0200)
dlls/atl/tests/module.c

index 1b21f6e714cf0d0cf1d17248e1d784024d9510e3..2a97ef95ad3b8702ac86aa2878923aa03970219e 100644 (file)
@@ -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)