On Sat, 25 Jul 2020, Serge Gautherie wrote: [...]
winapi_test: '* long *' is 4 bytes, not pointer size. Fix _WIN64 case.
That depends. Wine used to be entirely compiled with gcc and there long is pointer sized. Now parts of it are compiler with MinGW and there long is always 4 bytes.
What this means is that long should really not be used in Wine's windows headers (except some rare cases) otherwise we lose compatibility with gcc.
But maybe your concern is to get winapi_test to work on the Windows headers? I guess for that use case the patch can make sense but then it should be documented in the code.