mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-utils: Initialize input parameters to ID3DInclude::Open().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dc7fd3760d
commit
d2f6ddba49
@ -129,11 +129,12 @@ static int open_include(const char *filename, bool local, const char *parent_dat
|
||||
struct vkd3d_shader_code *code)
|
||||
{
|
||||
ID3DInclude *iface = context;
|
||||
unsigned int size;
|
||||
unsigned int size = 0;
|
||||
|
||||
if (!iface)
|
||||
return VKD3D_ERROR;
|
||||
|
||||
memset(code, 0, sizeof(*code));
|
||||
if (FAILED(ID3DInclude_Open(iface, local ? D3D_INCLUDE_LOCAL : D3D_INCLUDE_SYSTEM,
|
||||
filename, parent_data, &code->code, &size)))
|
||||
return VKD3D_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user