[Bug 46236] Far 3.0 x64 crashes starting from build 5200

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Feb 17 14:59:33 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=46236

--- Comment #16 from Chatty <mail at 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?view=vs-2017

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list