Commit 7d08ae9b authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3dx9: Make '\0' the default case in get_constant_by_name().

parent b999ab16
......@@ -752,7 +752,7 @@ static struct ctab_constant *get_constant_by_name(struct ID3DXConstantTableImpl
handles = constant->constants;
}
length = strcspn( name, "[." );
length = strcspn(name, "[.");
part = name + length;
for (i = 0; i < count; i++)
......@@ -767,13 +767,9 @@ static struct ctab_constant *get_constant_by_name(struct ID3DXConstantTableImpl
case '[':
return get_constant_element_by_name(&handles[i], part);
case '\0':
default:
TRACE("Returning parameter %p\n", &handles[i]);
return &handles[i];
default:
FIXME("Unhandled case \"%c\"\n", *--part);
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment