From f75a2aec511634495a9225621f1e842ebb4e9f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 14 May 2014 19:19:57 +0000 Subject: [PATCH] [NTVDM] For diagnostic/debugging purposes, prefill the keyboard buffer with invalid values. svn path=/trunk/; revision=63298 --- reactos/subsystems/ntvdm/bios/bios32/kbdbios32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/subsystems/ntvdm/bios/bios32/kbdbios32.c b/reactos/subsystems/ntvdm/bios/bios32/kbdbios32.c index 716af1f50d7..fdc5b400ed1 100644 --- a/reactos/subsystems/ntvdm/bios/bios32/kbdbios32.c +++ b/reactos/subsystems/ntvdm/bios/bios32/kbdbios32.c @@ -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 */