I have found a synchronization problem in kernel32/editline.c . The problem appears when read and write operations to the console are in different threads.
Detail information is here:
http://bugs.winehq.org/show_bug.cgi?id=13188
Solution to it should not be difficult. Could any developers look into this and fix it? Thanks very much!