d3dx9: "param" should never be NULL in free_parameter().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-11 16:01:40 +01:00 committed by Alexandre Julliard
parent 0bdae1a0b8
commit 20f7abf667
1 changed files with 0 additions and 3 deletions

View File

@ -540,9 +540,6 @@ static void free_parameter(struct d3dx_parameter *param, BOOL element, BOOL chil
TRACE("Free parameter %p, name %s, type %s, child %s\n", param, param->name,
debug_d3dxparameter_type(param->type), child ? "yes" : "no");
if (!param)
return;
if (param->annotations)
{
for (i = 0; i < param->annotation_count; ++i)