Paul Vriens : ddrawex/tests: Fix some test failures on W95.

Alexandre Julliard julliard at winehq.org
Thu Feb 26 09:05:19 CST 2009


Module: wine
Branch: master
Commit: 53bd36ebe3daff849cace16bf316818b9a1ddc5c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=53bd36ebe3daff849cace16bf316818b9a1ddc5c

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Feb 26 09:45:00 2009 +0100

ddrawex/tests: Fix some test failures on W95.

---

 dlls/ddrawex/tests/ddrawex.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/ddrawex/tests/ddrawex.c b/dlls/ddrawex/tests/ddrawex.c
index 608a19c..9a2fb16 100644
--- a/dlls/ddrawex/tests/ddrawex.c
+++ b/dlls/ddrawex/tests/ddrawex.c
@@ -58,6 +58,12 @@ static void RefCountTest(void)
 
     IDirectDraw_AddRef(dd1);
     ref = get_ref((IUnknown *) dd1);
+    if (ref == 1)
+    {
+        win_skip("Refcounting is broken\n");
+        IDirectDraw_Release(dd1);
+        return;
+    }
     ok(ref == 2, "After AddRef the refcount is %u, expected 2\n", ref);
     IDirectDraw_Release(dd1);
     ref = get_ref((IUnknown *) dd1);




More information about the wine-cvs mailing list