[PATCH 2/2] d3dcompiler/tests: Load the correct d3dcompiler DLL in the asm tests.
Matteo Bruni
mbruni at codeweavers.com
Fri Jan 3 13:52:34 CST 2020
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/d3dcompiler_43/tests/asm.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dcompiler_43/tests/asm.c b/dlls/d3dcompiler_43/tests/asm.c
index 900e6628439..749b1153267 100644
--- a/dlls/d3dcompiler_43/tests/asm.c
+++ b/dlls/d3dcompiler_43/tests/asm.c
@@ -1725,7 +1725,11 @@ static BOOL load_d3dcompiler(void)
{
HMODULE module;
+#if D3D_COMPILER_VERSION == 47
+ if (!(module = LoadLibraryA("d3dcompiler_47.dll"))) return FALSE;
+#else
if (!(module = LoadLibraryA("d3dcompiler_43.dll"))) return FALSE;
+#endif
pD3DAssemble = (void*)GetProcAddress(module, "D3DAssemble");
ppD3DPreprocess = (void*)GetProcAddress(module, "D3DPreprocess");
@@ -1736,7 +1740,7 @@ START_TEST(asm)
{
if (!load_d3dcompiler())
{
- win_skip("Could not load d3dcompiler_43.dll\n");
+ win_skip("Could not load DLL.\n");
return;
}
--
2.24.1
More information about the wine-devel
mailing list