https://bugs.winehq.org/show_bug.cgi?id=46236
--- Comment #16 from Chatty mail@chatty.de --- I could finally spot the root cause with the help of Alex:
This little piece of code compiled with /MT (instead of default /MD) causes x64 code to crash on a Mac (x86 or Linux is not affected):
struct s { static unsigned WINAPI func(void* Param) { std::wcout << (const wchar_t*)Param; return 0; } }; _beginthreadex(nullptr, 0, &s::func, (void*)L"Test", 0, 0); Sleep(1000);
More info on the compiler parameter: https://docs.microsoft.com/cpp/build/reference/md-mt-ld-use-run-time-library...