ddraw/tests: Fix test for VM

Ge van Geldorp ge at gse.nl
Sun Mar 1 17:24:40 CST 2009


ESX 3.5U3 can't attach offscreen plain surfaces.

Changelog:
  ddraw/tests: Fix test for VM

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

diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index a12b968..4e0bf73 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -1389,7 +1389,7 @@ 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 || 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);
-- 
1.6.0.2








More information about the wine-patches mailing list