From 720ab73ec3ce73742e1254faefffff0d6cb11c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 27 Oct 2013 22:10:51 +0000 Subject: [PATCH] [NTVDM]: DPRINT1 ReadConsoleInput failures (for debugging purposes) and remove an unneeded comment. svn path=/branches/ntvdm/; revision=60775 --- subsystems/ntvdm/ps2.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/subsystems/ntvdm/ps2.c b/subsystems/ntvdm/ps2.c index e17c3d2156b..ec39f053f25 100644 --- a/subsystems/ntvdm/ps2.c +++ b/subsystems/ntvdm/ps2.c @@ -277,9 +277,9 @@ DWORD WINAPI InputThreadProc(LPVOID Parameter) /* Wait for an input record */ if (!ReadConsoleInput(ConsoleInput, &InputRecord, 1, &Count)) { - DPRINT1("Error reading console input\n"); - return GetLastError(); - + DWORD LastError = GetLastError(); + DPRINT1("Error reading console input (0x%p, %lu) - Error %lu\n", ConsoleInput, Count, LastError); + return LastError; } ASSERT(Count != 0); @@ -300,8 +300,6 @@ DWORD WINAPI InputThreadProc(LPVOID Parameter) KeyboardQueuePush(ScanCode); } - /* TODO: Update the keyboard shift status flags */ - /* Keyboard IRQ */ PicInterruptRequest(1);