[PATCH] d3d9: Return a stub interface from Direct3DShaderValidatorCreate9().

Dmitry Timoshkov dmitry at baikal.ru
Sun Feb 9 04:39:07 CST 2020


Zebediah Figura <z.figura12 at gmail.com> wrote:

> +typedef struct
> +{
> +    HRESULT WINAPI (*QueryInterface)(IDirect3DShaderValidator9 *iface, REFIID iid, void **out);
> +    ULONG WINAPI (*AddRef)(IDirect3DShaderValidator9 *iface);
> +    ULONG WINAPI (*Release)(IDirect3DShaderValidator9 *iface);
> +    HRESULT WINAPI (*Begin)(IDirect3DShaderValidator9 *iface, shader_validator_cb callback, void *context, DWORD_PTR arg3);
> +    HRESULT WINAPI (*Instruction)(IDirect3DShaderValidator9 *iface, const char *file, int line, const DWORD *code, DWORD code_len);
> +    HRESULT WINAPI (*End)(IDirect3DShaderValidator9 *iface);
> +} IDirect3DShaderValidator9Vtbl;

WINAPI should be moved inside of brackets otherwise this won't compile
with MSVC (here and in other places, confusingly this patch uses correct
and incorrect styles).

-- 
Dmitry.



More information about the wine-devel mailing list