aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/svfprintf.c
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2022-03-18 21:35:07 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2022-03-18 22:47:01 +0900
commitfcb182387a23d59ad85896e9a92bab9bca37adec (patch)
tree2634e7acf2e011aecebec89b8fd5dd4f0eacf048 /newlib/libc/stdio/svfprintf.c
parentd88cbd0e7c48c631106871a87ff0f4f39b5743b7 (diff)
downloadnewlib-fcb182387a23d59ad85896e9a92bab9bca37adec.zip
newlib-fcb182387a23d59ad85896e9a92bab9bca37adec.tar.gz
newlib-fcb182387a23d59ad85896e9a92bab9bca37adec.tar.bz2
Cygwin: console: Fix typeahead key swapping which still occurs.
- The commit "Cygwin: console: Improve the code to avoid typeahead key swapping." did not solve the problem enough. 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() may report the event sequence 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. Current code gives up to fix in this situation. This patch should fix that issue.
Diffstat (limited to 'newlib/libc/stdio/svfprintf.c')
0 files changed, 0 insertions, 0 deletions