[NTVDM]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 14 May 2014 19:19:57 +0000 (19:19 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 14 May 2014 19:19:57 +0000 (19:19 +0000)
For diagnostic/debugging purposes, prefill the keyboard buffer with invalid values.

svn path=/trunk/; revision=63298

reactos/subsystems/ntvdm/bios/bios32/kbdbios32.c

index 716af1f..fdc5b40 100644 (file)
@@ -273,6 +273,9 @@ BOOLEAN KbdBios32Initialize(VOID)
     Bda->KeybdBufferEnd   = Bda->KeybdBufferStart + BIOS_KBD_BUFFER_SIZE * sizeof(WORD);
     Bda->KeybdBufferHead  = Bda->KeybdBufferTail = 0;
 
+    // FIXME: Fill the keyboard buffer with invalid values, for diagnostic purposes...
+    RtlFillMemory(((LPVOID)((ULONG_PTR)Bda + Bda->KeybdBufferStart)), BIOS_KBD_BUFFER_SIZE * sizeof(WORD), 'A');
+
     /* Register the BIOS 32-bit Interrupts */
 
     /* Initialize software vector handlers */