From: Matteo Bruni mbruni@codeweavers.com
Fixes: fe4e5225e45fd8bbdf262b3efe375dd1da178a25 --- dlls/d3dx9_36/shader.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c index f15356ecf53..c82478ad0c9 100644 --- a/dlls/d3dx9_36/shader.c +++ b/dlls/d3dx9_36/shader.c @@ -194,7 +194,13 @@ static BOOL WINAPI load_d3dassemble_once(INIT_ONCE *once, void *param, void **co * in sync regarding which library creates the unnumbered d3dcompiler.lib implib. * GetModuleHandleExA(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, D3DCompile) would * be nice, but "D3DCompile" will point to the IAT stub, not d3dcompiler_xy.dll */ +#if D3DX_SDK_VERSION == 42 + HMODULE mod = GetModuleHandleW(L"d3dcompiler_42"); +#elif D3DX_SDK_VERSION == 43 + HMODULE mod = GetModuleHandleW(L"d3dcompiler_43"); +#else HMODULE mod = GetModuleHandleW(D3DCOMPILER_DLL_W); +#endif void **assemble = param;
if (!mod)