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:
Zebediah Figura 2020-12-01 20:51:10 -06:00 committed by Alexandre Julliard
parent dc7fd3760d
commit d2f6ddba49

View File

@ -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;