Author: dgorbachev
Date: Mon Sep 28 22:46:30 2009
New Revision: 43217
URL:
http://svn.reactos.org/svn/reactos?rev=43217&view=rev
Log:
Fix some bugs.
Modified:
trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c
trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c
Modified: trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/wrappers/gdbst…
==============================================================================
--- trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kd/wrappers/gdbstub.c [iso-8859-1] Mon Sep 28 22:46:30 2009
@@ -1327,6 +1327,7 @@
strcpy(GspOutBuffer, "E03");
DPRINT1("Fault during memory read\n");
}
+ ptr = NULL;
}
if (NULL != ptr)
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_keyboard…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_keyboard.c [iso-8859-1] Mon Sep 28 22:46:30 2009
@@ -112,9 +112,7 @@
while (KeepRetrying || Retry-- > 0)
{
- unsigned char status = kbd_read_status();
-
- while (status & KBD_STAT_OBF)
+ while (kbd_read_status() & KBD_STAT_OBF)
{
byte_t scancode;