Alexandre Julliard : ddraw/tests: Fix a failing test on 64-bit.

Alexandre Julliard julliard at winehq.org
Tue Jul 14 10:37:30 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jul 14 11:28:37 2009 +0200

ddraw/tests: Fix a failing test on 64-bit.

---

 dlls/ddraw/tests/refcount.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/tests/refcount.c b/dlls/ddraw/tests/refcount.c
index f0496e3..9ad560b 100644
--- a/dlls/ddraw/tests/refcount.c
+++ b/dlls/ddraw/tests/refcount.c
@@ -358,6 +358,14 @@ static void test_d3d_ifaces(void)
     ok(ref == 1, "IDirectDraw reference count is %ld\n", ref);
 
     hr = IDirectDraw_QueryInterface(DDraw1, &IID_IDirect3D, (void **) &D3D1);
+    if (hr == E_NOINTERFACE)  /* win64 */
+    {
+        IDirectDraw4_Release(DDraw4);
+        IDirectDraw2_Release(DDraw2);
+        IDirectDraw_Release(DDraw1);
+        skip( "no IDirect3D support\n" );
+        return;
+    }
     ok(hr == DD_OK, "IDirectDraw_QueryInterface returned %08x\n", hr);
     ref = getRefcount( (IUnknown *) DDraw4);
     ok(ref == 1, "IDirectDraw4 reference count is %ld\n", ref);




More information about the wine-cvs mailing list