win32.c fix: is_readable_console
UnicodeChar with lower byte == 0 has dropped accidentaly this is additional fix for #5634
This commit is contained in:
parent
e2ccb316b4
commit
7a849e1903
Notes:
git
2022-09-09 00:46:32 +09:00
@ -3102,7 +3102,7 @@ is_readable_console(SOCKET sock) /* call this for console only */
|
||||
RUBY_CRITICAL {
|
||||
if (PeekConsoleInputW((HANDLE)sock, &ir, 1, &n) && n > 0) {
|
||||
if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown &&
|
||||
ir.Event.KeyEvent.uChar.AsciiChar) {
|
||||
ir.Event.KeyEvent.uChar.UnicodeChar) {
|
||||
ret = 1;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user