[PATCH 3/4] winapi_test: '* long *' is 4 bytes, not pointer size, on Windows.

Francois Gouget fgouget at free.fr
Thu Aug 13 04:13:08 CDT 2020


Signed-off-by: Francois Gouget <fgouget at free.fr>

Wine's headers have mostly avoided 'long' for a long time due to the 
discrepency between Windows (always 32-bit) and Unix compilers 
(pointer sized). But we now seem to use it again, at least in idl files, 
and in msvcrt. That's ok as long as those files get compiled with 
MinGW which just happens to be the case for the conformance tests.

In any case we should always treat types like they behave on Windows 
when computing the expected structure sizes and alignments for our 
tests. So this patch makes sense.



More information about the wine-devel mailing list