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

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2017-06-22 16:11:54 +03:00 committed by Alexandre Julliard
parent 9b35d5c6d4
commit ed7e27ad8d
1 changed files with 0 additions and 5 deletions

View File

@ -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];
}
}