[Bug 24597] Eisenbahn.exe Pro 5 (EEP 5) train simulator crashes on startup

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Nov 6 22:45:04 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=24597

--- Comment #3 from Dmitry Timoshkov <dmitry at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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