https://bugs.winehq.org/show_bug.cgi?id=46366
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #1 from Piotr Caban piotr.caban@gmail.com --- _initterm is supposed to call __cdecl functions that are responsible for preserving ESI register. That's why it should not need to save/restore it. It looks like native is also not doing it taking it account that it crashes when it's used as well. You should probably check what functions are called by _initterm, maybe e.g. one of them is implemented in wine and needs to be fixed.