[PATCH vkd3d 4/9] tests: Fix --warp command line option.

Józef Kucia joseph.kucia at gmail.com
Tue Dec 11 08:48:00 CST 2018


From: Józef Kucia <jkucia at codeweavers.com>

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 tests/d3d12_crosstest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/d3d12_crosstest.h b/tests/d3d12_crosstest.h
index 94aa4e5fc57f..00db06407f2f 100644
--- a/tests/d3d12_crosstest.h
+++ b/tests/d3d12_crosstest.h
@@ -254,7 +254,7 @@ static IUnknown *create_adapter(void)
     hr = CreateDXGIFactory1(&IID_IDXGIFactory4, (void **)&factory);
     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);
         return adapter;
-- 
2.19.2




More information about the wine-devel mailing list