Matteo Bruni : d3dcompiler/tests: Also accept broken HRESULT with d3dcompiler_46.

Alexandre Julliard julliard at winehq.org
Thu Oct 7 16:21:21 CDT 2021


Module: wine
Branch: master
Commit: ae1f9899bb06ff0998dcf6b446f6ea3354f14804
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ae1f9899bb06ff0998dcf6b446f6ea3354f14804

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Oct  6 18:49:38 2021 +0200

d3dcompiler/tests: Also accept broken HRESULT with d3dcompiler_46.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dcompiler_43/tests/reflection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dcompiler_43/tests/reflection.c b/dlls/d3dcompiler_43/tests/reflection.c
index 75f30e45dce..6d6173824a2 100644
--- a/dlls/d3dcompiler_43/tests/reflection.c
+++ b/dlls/d3dcompiler_43/tests/reflection.c
@@ -164,8 +164,8 @@ static void test_reflection_interfaces(void)
 
     expected_hr = D3D_COMPILER_VERSION < 46 ? E_NOINTERFACE : D3D_COMPILER_VERSION == 46 ? E_INVALIDARG : S_OK;
     hr = call_reflect(test_reflection_blob, test_reflection_blob[6], &IID_ID3D12ShaderReflection, (void **)&ref12);
-    /* Broken with older d3dcompiler_47. */
-    ok(hr == expected_hr || broken(expected_hr == S_OK && hr == E_NOINTERFACE), "Got unexpected hr %#x.\n", hr);
+    /* Broken with older d3dcompiler_46, d3dcompiler_47. */
+    ok(hr == expected_hr || broken(hr == E_NOINTERFACE), "Got unexpected hr %#x.\n", hr);
 
     if (hr != S_OK)
         return;




More information about the wine-cvs mailing list