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,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
|
||||
|
|
Loading…
Reference in New Issue