Comment 58 for bug 313202

Revision history for this message
Rongcui Dong (rongcuid) wrote :

In current Stable, (struct foo) is synonymous to (* (struct foo)) when passing arguments due to struct (or record) inheriting methods from SAP. On some platforms (like windows X86, I believe), this could work due to their ABI. However, this "working" is just accidental, and on many other platforms it will not work.

I am not familiar with Win32 API, but the last argument is supposed to be a struct pointer: https://learn.microsoft.com/en-us/previous-versions/windows/embedded/ms890909(v=msdn.10). So, the win32 test case is wrong.