9 Jun
2023
9 Jun
'23
3:19 p.m.
Signed-off-by: fanwenjie <fanwj(a)mail.ustc.edu.cn> On unixlib, macro WINAPI means nothing. In windef.h ``` #ifdef WINE_UNIX_LIB # define __stdcall # define __cdecl # define __fastcall #elif !defined(_MSC_VER) && !defined(__MINGW32__) ``` ``` extern void WINAPI DECLSPEC_NORETURN __wine_syscall_dispatcher_return( void *frame, ULONG_PTR retval ) DECLSPEC_HIDDEN; ``` equals ``` extern void __attribute__((sysv_abi)) DECLSPEC_NORETURN __wine_syscall_dispatcher_return( void *frame, ULONG_PTR retval ) DECLSPEC_HIDDEN; ``` But implementation of __wine_syscall_dispatcher_return is ms_abi on x86_64, the patch fixed it -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3029