Commit 9fd08dbf authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Fix a couple of failure return values in >= 46 D3DReflect().

parent d6c6fc45
...@@ -2005,13 +2005,21 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void ...@@ -2005,13 +2005,21 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void
if (temp[6] != data_size) if (temp[6] != data_size)
{ {
WARN("Wrong size supplied.\n"); WARN("Wrong size supplied.\n");
#if D3D_COMPILER_VERSION >= 46
return D3DERR_INVALIDCALL;
#else
return E_FAIL; return E_FAIL;
#endif
} }
if (!IsEqualGUID(riid, &IID_ID3D11ShaderReflection)) if (!IsEqualGUID(riid, &IID_ID3D11ShaderReflection))
{ {
WARN("Wrong riid %s, accept only %s!\n", debugstr_guid(riid), debugstr_guid(&IID_ID3D11ShaderReflection)); WARN("Wrong riid %s, accept only %s!\n", debugstr_guid(riid), debugstr_guid(&IID_ID3D11ShaderReflection));
#if D3D_COMPILER_VERSION >= 46
return E_INVALIDARG;
#else
return E_NOINTERFACE; return E_NOINTERFACE;
#endif
} }
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object)); object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment