>From 4a8bf7af87b3c6df54a3bc4b1976e86720bc3308 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sun, 21 Sep 2008 13:08:13 +0200 Subject: [PATCH] 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 */ -- 1.5.5.1