wpp: Invert 'type' callback parameter value, to match comment.
This commit is contained in:
parent
c722f2d31e
commit
8b0d3d9f9a
|
@ -193,7 +193,7 @@ static void *wpp_open_mem(const char *filename, int type)
|
|||
return NULL;
|
||||
}
|
||||
hr = ID3DInclude_Open(current_include,
|
||||
type ? D3D_INCLUDE_SYSTEM : D3D_INCLUDE_LOCAL,
|
||||
type ? D3D_INCLUDE_LOCAL : D3D_INCLUDE_SYSTEM,
|
||||
filename, parent_include, (LPCVOID *)&desc->buffer,
|
||||
&desc->size);
|
||||
if(FAILED(hr))
|
||||
|
|
|
@ -517,7 +517,7 @@ void *pp_open_include(const char *name, const char *parent_name, char **newpath)
|
|||
|
||||
if (!(path = wpp_callbacks->lookup(name, parent_name, includepath,
|
||||
nincludepath))) return NULL;
|
||||
fp = wpp_callbacks->open(path, parent_name == NULL ? 1 : 0);
|
||||
fp = wpp_callbacks->open(path, !!parent_name);
|
||||
|
||||
if (fp)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue