winapi_test: '* long *' is 4 bytes, not pointer size, on Windows.

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-08-12 05:41:16 +02:00 committed by Alexandre Julliard
parent 4cd1aa12b9
commit 78e9192d07
1 changed files with 3 additions and 2 deletions
tools/winapi

View File

@ -231,9 +231,10 @@ sub _find_align_kind_size($) {
$kind = "float";
$size = 4;
} elsif (/^(?:(signed|unsigned)\s+)?(?:long(?:\s+int)?)$/) {
$align = $pointer_size;
# 'long' is always 4 bytes on Windows.
$align = 4;
$kind = defined($1) ? $1 : "signed";
$size = $pointer_size;
$size = 4;
} elsif (/^(?:(signed|unsigned)\s+)?__int64$/) {
$align = 8;
$kind = defined($1) ? $1 : "signed";