d3dcompiler/tests: Load the correct d3dcompiler DLL in the HLSL tests.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2020-01-03 20:52:33 +01:00 committed by Alexandre Julliard
parent d024b33ca1
commit 20b52b61c6
1 changed files with 5 additions and 1 deletions

View File

@ -630,7 +630,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
ppD3DCompile = (void*)GetProcAddress(module, "D3DCompile");
return TRUE;
@ -648,7 +652,7 @@ START_TEST(hlsl)
if (!load_d3dcompiler())
{
win_skip("Could not load d3dcompiler_43.dll\n");
win_skip("Could not load DLL.\n");
return;
}