Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/compiler.c:
if (errors) *errors = NULL;
- if (FAILED(hr = D3DCompile(data, datasize, filename, defines, include, "main", profile,
shader_flags, effect_flags, &code, errors)))
- buffer = (void *)data;
- size = datasize;
- /* Effect is not compiled. */
- if (datasize < sizeof(dxbc) || memcmp(dxbc, data, sizeof(dxbc)) != 0)
We usually do without the explicit "!= 0".