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

Alexandre Julliard julliard at winehq.org
Thu Aug 13 15:11:51 CDT 2020


Module: wine
Branch: master
Commit: 78e9192d07dcae6b903a6fdbe3d8098a073e4e69
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=78e9192d07dcae6b903a6fdbe3d8098a073e4e69

Author: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Date:   Wed Aug 12 05:41:16 2020 +0200

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

Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winapi/winapi_test | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/winapi/winapi_test b/tools/winapi/winapi_test
index e9e5fe43ec..8c566776e3 100755
--- a/tools/winapi/winapi_test
+++ b/tools/winapi/winapi_test
@@ -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";




More information about the wine-cvs mailing list