forked from Mirrors/wine-wine
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>feature/deterministic
parent
93a5ce2445
commit
3462153a05
|
@ -239,10 +239,16 @@ sub _refresh($)
|
||||||
}
|
}
|
||||||
else
|
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);
|
$type_size *= int($count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ($bitfield_size != 0)
|
if ($bitfield_size != 0)
|
||||||
{
|
{
|
||||||
if (($type_name eq "" and defined $bits and $bits == 0) or
|
if (($type_name eq "" and defined $bits and $bits == 0) or
|
||||||
|
|
Loading…
Reference in New Issue