summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 480b7a6797..6f1ee51206 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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 {