http://bugs.winehq.org/show_bug.cgi?id=2813
------- Additional Comments From burnus@gmx.de 2005-07-04 04:52 ------- Created an attachment (id=837) --> (http://bugs.winehq.org/attachment.cgi?id=837&action=view) Complete WINEDEBUG=+win,+edit with current CVS
I'm not completely sure whether the -22 is indeed the reason, it seems to point to another window (handle). What is sure: The last line executed in edit.c's EDIT_EM_ReplaceSel is the EDIT_NOTIFY_PARENT(es, EN_MAXTEXT, "EN_MAXTEXT"); in the "else" block of "if (es->style & ES_MULTILINE)", my extra trace after the else block is not executed. In the innerst if before the notify, es->text_width = 20 and fw=7. Re-looking at attachment 833, I don't know how to trace the "what happens next".
WINEDEBUG=+win,+edit shows (look at the handles) while it creates the splash window - or maybe when it starts to create the main (mdi) window is attached.