dmcompos/tests: Fix a failing test on Windows 8.

Huw Davies huw at codeweavers.com
Fri Feb 3 05:45:25 CST 2017


The dirty bit is most likely uninitialized, so sometimes this returns S_OK.

Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/dmcompos/tests/dmcompos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dmcompos/tests/dmcompos.c b/dlls/dmcompos/tests/dmcompos.c
index 4e9a80d..fd68ac3 100644
--- a/dlls/dmcompos/tests/dmcompos.c
+++ b/dlls/dmcompos/tests/dmcompos.c
@@ -252,7 +252,7 @@ static void test_chordmap(void)
 
     /* Unimplemented IPersistStream methods */
     hr = IPersistStream_IsDirty(ps);
-    ok(hr == S_FALSE, "IPersistStream_IsDirty failed: %08x\n", hr);
+    ok(hr == S_FALSE || broken(hr == S_OK), "IPersistStream_IsDirty failed: %08x\n", hr);
     hr = IPersistStream_GetSizeMax(ps, &size);
     ok(hr == E_NOTIMPL, "IPersistStream_GetSizeMax failed: %08x\n", hr);
     hr = IPersistStream_Save(ps, NULL, TRUE);
-- 
2.10.2




More information about the wine-patches mailing list