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:
parent
4cd1aa12b9
commit
78e9192d07
tools/winapi
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue