Paul Vriens : ddraw/tests: Fix a test on a Win98 box.
Module: wine Branch: master Commit: a12509532cf87a92fd8028a2505975106ed43517 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a12509532cf87a92fd8028a250... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Sun Sep 21 13:08:13 2008 +0200 ddraw/tests: Fix a test on a Win98 box. --- dlls/ddraw/tests/ddrawmodes.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c index 95e8657..dcde97d 100644 --- a/dlls/ddraw/tests/ddrawmodes.c +++ b/dlls/ddraw/tests/ddrawmodes.c @@ -284,8 +284,13 @@ static void testcooperativelevels_normal(void) /* Try creating a double buffered primary in normal mode */ rc = IDirectDraw_CreateSurface(lpDD, &surfacedesc, &surface, NULL); - ok(rc == DDERR_NOEXCLUSIVEMODE, "IDirectDraw_CreateSurface returned %08x\n", rc); - ok(surface == NULL, "Returned surface pointer is %p\n", surface); + if (rc == DDERR_UNSUPPORTEDMODE) + skip("Unsupported mode\n"); + else + { + ok(rc == DDERR_NOEXCLUSIVEMODE, "IDirectDraw_CreateSurface returned %08x\n", rc); + ok(surface == NULL, "Returned surface pointer is %p\n", surface); + } if(surface && surface != (IDirectDrawSurface *)0xdeadbeef) IDirectDrawSurface_Release(surface); /* Set the focus window */
participants (1)
-
Alexandre Julliard