mfreadwrite/tests: Skip tests if D3D9 is unusable.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-01-08 15:16:33 +01:00 committed by Alexandre Julliard
parent 7748c76e35
commit dcd8551142

View file

@ -1374,9 +1374,13 @@ static void test_reader_d3d9(void)
UINT token;
ULONG refcount;
window = create_window();
d3d9 = Direct3DCreate9(D3D_SDK_VERSION);
ok(!!d3d9, "Failed to create a D3D9 object.\n");
if (!d3d9)
{
skip("Failed to create a D3D9 object, skipping tests.\n");
return;
}
window = create_window();
if (!(d3d9_device = create_d3d9_device(d3d9, window)))
{
skip("Failed to create a D3D9 device, skipping tests.\n");