[PATCH v2 1/2] winapi_test: Do not multiply type size when it is undefined, in _refresh().
Francois Gouget
fgouget at free.fr
Tue Apr 14 05:41:10 CDT 2020
On Tue, 14 Apr 2020, Serge Gautherie wrote:
> Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
> ---
> 'Use of uninitialized value $type_size in multiplication (*) at tools/winapi/c_type.pm line 244.'
Which file triggers this error? Is it in the Wine source?
I'm getting errors when I run winapi_check but not there.
> }
> 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);
> + }
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
The nice thing about meditation is that it makes doing nothing quite respectable
-- Paul Dean
More information about the wine-devel
mailing list