tests: Fix --warp command line option.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-12-11 15:48:00 +01:00 committed by Alexandre Julliard
parent f359108658
commit 0be448b4fd

View File

@ -254,7 +254,7 @@ static IUnknown *create_adapter(void)
hr = CreateDXGIFactory1(&IID_IDXGIFactory4, (void **)&factory); hr = CreateDXGIFactory1(&IID_IDXGIFactory4, (void **)&factory);
ok(hr == S_OK, "Failed to create IDXGIFactory4, hr %#x.\n", hr); ok(hr == S_OK, "Failed to create IDXGIFactory4, hr %#x.\n", hr);
if (use_warp_device && !(adapter = create_warp_adapter(factory))) if (use_warp_device && (adapter = create_warp_adapter(factory)))
{ {
IDXGIFactory4_Release(factory); IDXGIFactory4_Release(factory);
return adapter; return adapter;