mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:47:17 +00:00
d3dcompiler: Fix a couple of failure return values in >= 46 D3DReflect().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d6c6fc455d
commit
9fd08dbff6
|
@ -2005,13 +2005,21 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void
|
|||
if (temp[6] != data_size)
|
||||
{
|
||||
WARN("Wrong size supplied.\n");
|
||||
#if D3D_COMPILER_VERSION >= 46
|
||||
return D3DERR_INVALIDCALL;
|
||||
#else
|
||||
return E_FAIL;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!IsEqualGUID(riid, &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;
|
||||
#endif
|
||||
}
|
||||
|
||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
||||
|
|
Loading…
Reference in a new issue