https://bugs.winehq.org/show_bug.cgi?id=46366
Bug ID: 46366 Summary: wordpad from win7 crashes on startup (esi not saved in _initterm) Product: Wine Version: 4.0-rc3 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: dark.shadow4@web.de Distribution: ---
Created attachment 63103 --> https://bugs.winehq.org/attachment.cgi?id=63103 Hack
After working around a few issues, wordpad crashes inside _initterm. Native msvcrt doesn't help.
You need wordpad.exe and wordpad.exe.mui from win7.
Then you'll need "winetricks mfc42". Also will need native uiribbon and uxtheme.
Last, you'll need attached hack to work around bug 43670 and fix the issue this bug is about.
The problem seems to be that the called function doesn't save esi, but gcc assumes it is. At least, it works when manually saving esi, or changing the code so that gcc doesn't use esi in the first place.