Commit 607c76a1 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3dx9: Improve check for empty braces for elements.

parent 07ae14ad
......@@ -975,7 +975,8 @@ static struct d3dx_parameter *get_parameter_element_by_name(struct d3dx_paramete
element = atoi(name);
part = strchr(name, ']') + 1;
if (parameter->element_count > element)
/* check for empty [] && element range */
if ((part - name) > 1 && parameter->element_count > element)
{
temp_parameter = get_parameter_struct(parameter->member_handles[element]);
......
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