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:
Serge Gautherie 2020-04-14 11:47:23 +02:00 committed by Alexandre Julliard
parent 93a5ce2445
commit 3462153a05
1 changed files with 8 additions and 2 deletions

View File

@ -239,10 +239,16 @@ sub _refresh($)
}
else
{
print STDERR "$type_name -> type_size=undef, count=$count\n" if (!defined $type_size);
if (!defined $type_size)
{
print STDERR "$type_name -> type_size=undef, count=$count\n";
}
else
{
$type_size *= int($count);
}
}
}
if ($bitfield_size != 0)
{
if (($type_name eq "" and defined $bits and $bits == 0) or