Commit f076d79c authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ddraw/tests: Don't crash on win9x.

parent 36d63105
...@@ -286,7 +286,7 @@ static void testcooperativelevels_normal(void) ...@@ -286,7 +286,7 @@ static void testcooperativelevels_normal(void)
rc = IDirectDraw_CreateSurface(lpDD, &surfacedesc, &surface, NULL); rc = IDirectDraw_CreateSurface(lpDD, &surfacedesc, &surface, NULL);
ok(rc == DDERR_NOEXCLUSIVEMODE, "IDirectDraw_CreateSurface returned %08x\n", rc); ok(rc == DDERR_NOEXCLUSIVEMODE, "IDirectDraw_CreateSurface returned %08x\n", rc);
ok(surface == NULL, "Returned surface pointer is %p\n", surface); 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 */ /* Set the focus window */
rc = IDirectDraw_SetCooperativeLevel(lpDD, rc = IDirectDraw_SetCooperativeLevel(lpDD,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment