ddraw/tests: Skip tests when DirectDraw4 is not supported.

This commit is contained in:
Paul Vriens 2008-11-12 10:21:07 +01:00 committed by Alexandre Julliard
parent 10e5d3aa12
commit 902bee8f09
1 changed files with 13 additions and 0 deletions

View File

@ -2750,8 +2750,21 @@ static void SurfaceCapsTest(void)
START_TEST(dsurface)
{
HRESULT ret;
IDirectDraw4 *dd4;
if (!CreateDirectDraw())
return;
ret = IDirectDraw_QueryInterface(lpDD, &IID_IDirectDraw4, (void **) &dd4);
if (ret == E_NOINTERFACE)
{
win_skip("DirectDraw4 and higher are not supported\n");
ReleaseDirectDraw();
return;
}
IDirectDraw_Release(dd4);
MipMapCreationTest();
SrcColorKey32BlitTest();
QueryInterface();