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

Zebediah Figura z.figura12 at gmail.com
Sun Feb 9 10:17:37 CST 2020


On 2/9/20 4:39 AM, Dmitry Timoshkov wrote:
> 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).
> 

Thank you for catching that; it was an unintentional mistake.



More information about the wine-devel mailing list