Commit dcd85511 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfreadwrite/tests: Skip tests if D3D9 is unusable.

parent 7748c76e
......@@ -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");
......
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