[PATCH 4/4] Fix a test failure on Win95

Paul Vriens Paul.Vriens.Wine at gmail.com
Sun Sep 19 10:18:25 CDT 2010


---
 dlls/atl/tests/module.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/atl/tests/module.c b/dlls/atl/tests/module.c
index 1b21f6e..2a97ef9 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)
-- 
1.6.2.5


--------------010506020604040305000607--



More information about the wine-patches mailing list