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

vkd3d-utils: Return an error from open_include() if a NULL ID3DInclude was...

vkd3d-utils: Return an error from open_include() if a NULL ID3DInclude was passed to D3DPreprocess().

Signed-off-by: default avatarZebediah Figura <zfigura@codeweavers.com>
Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent e1aea0a3
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,9 @@ static int open_include(const char *filename, bool local, const char *parent_dat
ID3DInclude *iface = context;
unsigned int size;
if (!iface)
return VKD3D_ERROR;
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