ddraw/tests: Fix a test on a Win98 box.

This commit is contained in:
Paul Vriens 2008-09-21 13:08:13 +02:00 committed by Alexandre Julliard
parent 1c5043e73d
commit a12509532c
1 changed files with 7 additions and 2 deletions

View File

@ -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 */