Alexandre Julliard : ddraw/tests: Allow IDirectDrawSurface_AddAttachedSurface failure on Windows.

Alexandre Julliard julliard at winehq.org
Thu Mar 5 10:31:04 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Mar  5 12:47:02 2009 +0100

ddraw/tests: Allow IDirectDrawSurface_AddAttachedSurface failure on Windows.

---

 dlls/ddraw/tests/dsurface.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index a12b968..f246807 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -1389,7 +1389,8 @@ static void AttachmentTest(void)
     hr = IDirectDrawSurface_DeleteAttachedSurface(surface2, 0, surface1);
     ok(hr == DD_OK, "DeleteAttachedSurface failed with %08x\n", hr);
     hr = IDirectDrawSurface_AddAttachedSurface(surface2, surface3); /* Fails on refrast */
-    ok(hr == DD_OK, "Attaching an offscreen plain surface to another offscreen plain surface returned %08x\n", hr);
+    ok(hr == DD_OK || broken(hr == DDERR_CANNOTATTACHSURFACE),
+       "Attaching an offscreen plain surface to another offscreen plain surface returned %08x\n", hr);
     if(SUCCEEDED(hr))
     {
         hr = IDirectDrawSurface_DeleteAttachedSurface(surface2, 0, surface3);




More information about the wine-cvs mailing list