ddrawex/tests: Don't crash on Windows 95.

This commit is contained in:
Paul Vriens 2010-04-07 21:47:16 +02:00 committed by Alexandre Julliard
parent e520605fa9
commit 9a787f7021

View file

@ -317,6 +317,11 @@ static void test_surface_from_dc4(void)
dd1 = createDD();
hr = IDirectDraw_QueryInterface(dd1, &IID_IDirectDraw4, (void **)&dd4);
if (hr == E_NOINTERFACE) {
win_skip("DirectDraw4 is not supported\n");
IDirectDraw_Release(dd1);
return;
}
ok(SUCCEEDED(hr), "IDirectDraw_QueryInterface failed, hr %#x.\n", hr);
IDirectDraw_Release(dd1);