Commit 950514c8 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ddrawex/tests: Don't crash on win9x.

parent b8cde623
...@@ -81,6 +81,10 @@ static void GetDCTest_main(DDSURFACEDESC *ddsd, DDSURFACEDESC2 *ddsd2, void (*te ...@@ -81,6 +81,10 @@ static void GetDCTest_main(DDSURFACEDESC *ddsd, DDSURFACEDESC2 *ddsd2, void (*te
IDirectDraw4 *dd4; IDirectDraw4 *dd4;
hr = IDirectDraw_CreateSurface(dd1, ddsd, &surf, NULL); hr = IDirectDraw_CreateSurface(dd1, ddsd, &surf, NULL);
if (hr == DDERR_UNSUPPORTEDMODE) {
win_skip("Unsupported mode\n");
return;
}
ok(hr == DD_OK, "IDirectDraw_CreateSurface failed: 0x%08x\n", hr); ok(hr == DD_OK, "IDirectDraw_CreateSurface failed: 0x%08x\n", hr);
testfunc(surf, 1); testfunc(surf, 1);
IDirectDrawSurface_Release(surf); IDirectDrawSurface_Release(surf);
...@@ -164,6 +168,10 @@ static void CapsTest(void) ...@@ -164,6 +168,10 @@ static void CapsTest(void)
ddsd.dwWidth = 64; ddsd.dwWidth = 64;
ddsd.dwHeight = 64; ddsd.dwHeight = 64;
hr = IDirectDraw_CreateSurface(dd1, &ddsd, &surf, NULL); hr = IDirectDraw_CreateSurface(dd1, &ddsd, &surf, NULL);
if (hr == DDERR_UNSUPPORTEDMODE) {
win_skip("Unsupported mode\n");
return;
}
ok(hr == DD_OK, "Creating a SYSMEM | VIDMEM surface returned 0x%08x, expected DD_OK\n", hr); ok(hr == DD_OK, "Creating a SYSMEM | VIDMEM surface returned 0x%08x, expected DD_OK\n", hr);
if(surf) IDirectDrawSurface_Release(surf); if(surf) IDirectDrawSurface_Release(surf);
......
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