http://bugs.winehq.org/show_bug.cgi?id=2813
------- Additional Comments From burnus@gmx.de 2005-07-04 13:48 -------
I would like to fix this properly but out of curiosity what hapens if you comment out the call to EDIT_NOTIFY_PARENT().
I'd also like a proper fix, but this works: Origin does not crash.
So es->text_width is 0 and es->text is "" just before the EDIT_NOTIFY_PARENT call. That does not seem to be what we should be sending it. AFAICT There is definately something wrong with that loop.
I'm not that sure. The inital string is "" and "10" should be appended. The edit box is 7 pixel wide and has no autoscrolling set. Unfortunally, "10" needs 20 pixels and thus the "1" is (roughtly) 10 pixel wide. The loop removes, step by step, a letter from the end until the all of the string fits _completely_ into the edit widget.
If I only comment out the loop (i.e. the notification is still sent), I get still the same crash. That means that the message itself causes the problem, not that the string is only 0 characters long. Either this is wrong or -- as Lauri Tulmin thinks -- the bug is higher up, e.g. the edit widget should have actually been wider than 7 pixels (and why some other window is created/resized to a width of -22 I also don't understand.)