Skip to content
Snippets Groups Projects
Commit d2f6ddba authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

vkd3d-utils: Initialize input parameters to ID3DInclude::Open().

parent dc7fd376
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment