From abe286b572ccf17076af38965978cd2e5e1cda4a Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Tue, 12 Apr 2005 23:27:59 +0000 Subject: [PATCH] Patch by tinus_ to fix a persistent problem with kdbg. Fixes the y umlaut bug. svn path=/trunk/; revision=14601 --- reactos/ntoskrnl/dbg/kdb_cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/dbg/kdb_cli.c b/reactos/ntoskrnl/dbg/kdb_cli.c index 75f2c78c75c..6528b2e7dba 100644 --- a/reactos/ntoskrnl/dbg/kdb_cli.c +++ b/reactos/ntoskrnl/dbg/kdb_cli.c @@ -1969,6 +1969,7 @@ KdbpReadCommand( if (KdDebugState & KD_DEBUG_KDSERIAL) { Key = (NextKey == '\0') ? KdbpGetCharSerial() : NextKey; + NextKey = '\0'; ScanCode = 0; if (Key == KEY_ESC) /* ESC */ { @@ -1996,6 +1997,7 @@ KdbpReadCommand( { ScanCode = 0; Key = (NextKey == '\0') ? KdbpGetCharKeyboard(&ScanCode) : NextKey; + NextKey = '\0'; } if ((Buffer - Orig) >= (Size - 1)) @@ -2014,7 +2016,7 @@ KdbpReadCommand( NextKey = KdbpTryGetCharSerial(5); else NextKey = KdbpTryGetCharKeyboard(&ScanCode, 5); - if (NextKey == '\n') + if (NextKey == '\n' || NextKey == -1) /* \n or no response at all */ NextKey = '\0'; DbgPrint("\n"); /*