On Fri, 18 Mar 2022 15:04:31 +0200 Orgad Shaneh wrote: > On Fri, Mar 18, 2022 at 2:15 PM Takashi Yano <takashi.y...@nifty.ne.jp> wrote: > > Thanks. I can reproduce the issue. I think I found the cause. > > The two unexpected things happen. > > > > (1) wVirtualKeyCode and wVirtualScanCode of readback key event may > > be null'ed even if they are not zero on WriteConsoleInputW(). > > Therefore, memcmp() report the event is not equal. > > (2) WriteConsoleInputW() may not be atomic. The event sequence which > > is written by WriteConsoleInputW() may be inserted by key input > > in the middle of the sequence. > > > > A patch for these issues is attached. Could you please test? > > Awesome, looks good now. Thank you very much! > > Hope this is the last bit :)
Thanks for testing! -- Takashi Yano <takashi.y...@nifty.ne.jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple