13 Nov
2019
13 Nov
'19
1:22 p.m.
On Tue, 12 Nov 2019 at 22:33, Matteo Bruni <mbruni(a)codeweavers.com> wrote:
@@ -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 }
It's perhaps worth noting that "if (D3D_COMPILER_VERSION >= 46)" would work just as well, and would avoid some conditional compilation.