Commit 7e30b443 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/tests: Skip tests if D3D9 is unusable.

parent dcd85511
......@@ -3756,6 +3756,13 @@ static void test_topology_loader_evr(void)
ok(hr == S_OK, "Failed to create activate object, hr %#lx.\n", hr);
hr = IMFActivate_ActivateObject(activate, &IID_IMFMediaSink, (void **)&sink);
if (FAILED(hr))
{
skip("Failed to create an EVR sink, skipping tests.\n");
DestroyWindow(window);
IMFActivate_Release(activate);
return;
}
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
hr = IMFMediaSink_GetStreamSinkById(sink, 0, &stream_sink);
......
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