http://bugs.winehq.org/show_bug.cgi?id=24597
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru 2013-11-06 22:45:04 CST --- Created attachment 46477 --> http://bugs.winehq.org/attachment.cgi?id=46477 Don't insert a sysmenu into an MDI frame menu
The application uses hardcoded sub-menu positions in order to modify and work with its own MDI frame menu, and it doesn't expect that somebody (read: MDI code in user32) inserts another popup menu at position 0.
The app does: hmenu = GetMenu(mdi_frame_hwnd); hsubmenu1 = GetSubMenu(hmenu, 3); hsubmenu2 = GetSubMenu(hsubmenu1, 8);
If the order of submenus in the main frame window menu changes, submenu 3 becomes actually an original submenu 2, which doesn't have a submenu at position 8, while the original submenu 3 does have it.
Attached hack avoids this initial crash and allows the app to start up, main window is shown but it crashes later on in another place, probably due to another problem.