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

d3dx9: Remove redundant parameter size check in set_constants().

parent 9b35d5c6
......@@ -1181,11 +1181,6 @@ static void set_constants(struct d3dx_regstore *rs, struct d3dx_const_tab *const
param_offset = i + j * info.major;
else
param_offset = i * info.minor + j;
if (param_offset * sizeof(unsigned int) >= param->bytes)
{
WARN("Parameter data is too short, name %s, component %u.\n", debugstr_a(param->name), i);
break;
}
out[offset] = data[param_offset];
}
}
......
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