http://bugs.winehq.org/show_bug.cgi?id=13188
--- Comment #5 from Yu-Ning Feng fengyuning1984@gmail.com 2008-05-15 17:21:17 --- Created an attachment (id=13088) --> (http://bugs.winehq.org/attachment.cgi?id=13088) backtrace after something wrong happened
1. The pos{X=0x1 Y=0x9} passed to SetConsoleCursorPosition was wrong. In this case, it should have been {X=0x4 Y=0xe} (previous output had 5 lines).
2. Being different from what appeared to be in the backtrace, ReadConsoleW did not call SetConsoleCursorPosition directly, CONSOLE_Readline did, according to the source code. Since ctx is initialized in CONSOLE_Readline and finally passed to SetConsoleCursorPosition, the problematic place should be in CONSOLE_Readline.
3. I have tried to find the accurate point. However, before the problematic SetConsoleCursorPosition, breakpoint CONSOLE_Readline was never triggered, which stopped me from going further.