[ros-diffs] [arty] 14601: Patch by tinus_ to fix a persistent problem with kdbg. Fixes the y umlaut

arty at svn.reactos.com arty at svn.reactos.com
Wed Apr 13 01:28:01 CEST 2005


Patch by tinus_ to fix a persistent problem with kdbg.  Fixes the y
umlaut
bug.
Modified: trunk/reactos/ntoskrnl/dbg/kdb_cli.c
  _____  

Modified: trunk/reactos/ntoskrnl/dbg/kdb_cli.c
--- trunk/reactos/ntoskrnl/dbg/kdb_cli.c	2005-04-12 23:25:14 UTC
(rev 14600)
+++ trunk/reactos/ntoskrnl/dbg/kdb_cli.c	2005-04-12 23:27:59 UTC
(rev 14601)
@@ -1969,6 +1969,7 @@

       if (KdDebugState & KD_DEBUG_KDSERIAL)
       {
          Key = (NextKey == '\0') ? KdbpGetCharSerial() : NextKey;
+         NextKey = '\0';
          ScanCode = 0;
          if (Key == KEY_ESC) /* ESC */
          {
@@ -1996,6 +1997,7 @@
       {
          ScanCode = 0;
          Key = (NextKey == '\0') ? KdbpGetCharKeyboard(&ScanCode) :
NextKey;
+         NextKey = '\0';
       }
 
       if ((Buffer - Orig) >= (Size - 1))
@@ -2014,7 +2016,7 @@
             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");
 	 /*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050413/6d9e6848/attachment.html


More information about the Ros-diffs mailing list