[PATCH 5/7] d3dcompiler: Fix a couple failure return values in >= 46 D3DReflect().

Henri Verbeet hverbeet at gmail.com
Wed Nov 13 07:22:04 CST 2019


On Tue, 12 Nov 2019 at 22:33, Matteo Bruni <mbruni at 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.



More information about the wine-devel mailing list