winapi_test: Do not multiply type size when it is undefined, in _refresh().
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr> Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
93a5ce2445
commit
3462153a05
|
@ -239,8 +239,14 @@ sub _refresh($)
|
|||
}
|
||||
else
|
||||
{
|
||||
print STDERR "$type_name -> type_size=undef, count=$count\n" if (!defined $type_size);
|
||||
$type_size *= int($count);
|
||||
if (!defined $type_size)
|
||||
{
|
||||
print STDERR "$type_name -> type_size=undef, count=$count\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$type_size *= int($count);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($bitfield_size != 0)
|
||||
|
|
Loading…
Reference in New Issue