ddraw/tests: Accept another error when setting an overlay with a NULL rect.

This commit is contained in:
Stefan Dösinger 2011-09-15 23:53:56 +02:00 committed by Alexandre Julliard
parent 95b7cda6be
commit f41513205c
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ static void rectangle_settings(void) {
/* Passing a NULL dest rect sets the position to 0/0 . Visually it can be seen that the overlay overlays the whole primary(==screen)*/
hr2 = IDirectDrawSurface7_UpdateOverlay(overlay, NULL, primary, NULL, 0, NULL);
ok(hr2 == DD_OK || hr2 == DDERR_INVALIDPARAMS, "IDirectDrawSurface7_UpdateOverlay failed with hr=0x%08x\n", hr);
ok(hr2 == DD_OK || hr2 == DDERR_INVALIDPARAMS
|| hr2 == DDERR_OUTOFCAPS, "IDirectDrawSurface7_UpdateOverlay failed with hr=0x%08x\n", hr2);
hr = IDirectDrawSurface7_GetOverlayPosition(overlay, &posx, &posy);
ok(hr == DD_OK, "IDirectDrawSurface7_GetOverlayPosition failed with hr=0x%08x\n", hr);
if (SUCCEEDED(hr2))