From: Paul Gofman Subject: [v3 3/3] d3dx9: Remove redundant parameter size check in set_constants(). Message-Id: <20170614220038.6812-3-gofmanp@gmail.com> Date: Thu, 15 Jun 2017 01:00:38 +0300 In-Reply-To: <20170614220038.6812-1-gofmanp@gmail.com> References: <20170614220038.6812-1-gofmanp@gmail.com> Signed-off-by: Paul Gofman --- v3: no changes. --- dlls/d3dx9_36/preshader.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dlls/d3dx9_36/preshader.c b/dlls/d3dx9_36/preshader.c index 2785ca3..0bc31cb 100644 --- a/dlls/d3dx9_36/preshader.c +++ b/dlls/d3dx9_36/preshader.c @@ -1178,11 +1178,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]; } } -- 2.9.4