Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/mesh.c:
hr = parse_mesh(filedata, &mesh_data, provide_flags); if (FAILED(hr)) goto cleanup;
- if (mesh_data.num_vertices == 0) {
if (adjacency_out) *adjacency_out = NULL;
if (materials_out) *materials_out = NULL;
if (effects_out) *effects_out = NULL;
*mesh_out = NULL;
hr = D3D_OK;
goto cleanup;
- }
Same as above (!var instead of var == 0, '{' on its own line), but additionally please put the if () body on its own line.