ddraw/tests: Don't crash on win9x.

This commit is contained in:
Paul Vriens 2008-05-28 11:18:15 +02:00 committed by Alexandre Julliard
parent 36d6310599
commit f076d79c6c
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ static void testcooperativelevels_normal(void)
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(surface) IDirectDrawSurface_Release(surface);
if(surface && surface != (IDirectDrawSurface *)0xdeadbeef) IDirectDrawSurface_Release(surface);
/* Set the focus window */
rc = IDirectDraw_SetCooperativeLevel(lpDD,