Fix some bugs.

svn path=/trunk/; revision=43217
This commit is contained in:
Dmitry Gorbachev 2009-09-28 20:46:30 +00:00
parent 2b337a70b8
commit e654206923
2 changed files with 2 additions and 3 deletions

View file

@ -1327,6 +1327,7 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
strcpy(GspOutBuffer, "E03");
DPRINT1("Fault during memory read\n");
}
ptr = NULL;
}
if (NULL != ptr)

View file

@ -112,9 +112,7 @@ KdbpTryGetCharKeyboard(PULONG ScanCode, ULONG Retry)
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;