Commit f09bf52d authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

d3dx9: Return NULL for child parameter's annotation in get_parameter_by_name().

parent ec199c9e
......@@ -931,7 +931,9 @@ struct d3dx_parameter *get_parameter_by_name(struct d3dx9_base_effect *base,
return get_parameter_by_name(NULL, temp_parameter, part);
case '@':
return get_annotation_by_name(temp_parameter->annotation_count, temp_parameter->annotations, part);
return parameter ? NULL
: get_annotation_by_name(temp_parameter->annotation_count,
temp_parameter->annotations, part);
case '[':
return get_parameter_element_by_name(temp_parameter, part);
......
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