http://bugs.winehq.org/show_bug.cgi?id=9039
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #14 from Anastasius Focht focht@gmx.net 2008-05-01 16:50:16 --- Hello,
--- quote --- The app is passing a read-only address (405809) to CB_GETLBTEXT. Probably Windows has an exception handler in there, this would need a test case. --- quote ---
After dissecting the app code my educated guess is that this app suffers from a bug in delphi runtime this app is statically linked with - which was fixed by the vendor a long time ago. See http://qc.codegear.com/wc/qcmain.aspx?d=3371 for explanation.
It crashes in Windows 2000 and previous versions but is gracefully handled in Windows XP and later.
If you call SendMessage( hWnd, CB_GETLBTEXT, index, buffer) with read-only address on Windows XP or later, CB_ERR (-1) is returned. For wine it makes sense to add SEH regardless of windows config which lets this app successfully start.
Regards