[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 27 Oct 2013 01:33:15 +0000 (01:33 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 27 Oct 2013 01:33:15 +0000 (01:33 +0000)
Push scancodes on to the BIOS keyboard queue even if they're not ASCII.

svn path=/branches/ntvdm/; revision=60764

subsystems/ntvdm/bios.c

index 61e6beb..51784a0 100644 (file)
@@ -1115,11 +1115,15 @@ VOID BiosHandleIrq(BYTE IrqNumber, LPWORD Stack)
                     BiosKeyboardMap[VirtualKey] |= (1 << 7);
 
                     /* Find out which character this is */
-                    if (ToAscii(VirtualKey, ScanCode, BiosKeyboardMap, &Character, 0) > 0)
+                    if (ToAscii(VirtualKey, ScanCode, BiosKeyboardMap, &Character, 0) == 0)
                     {
-                        /* Push it onto the BIOS keyboard queue */
-                        BiosKbdBufferPush((ScanCode << 8) | (Character & 0xFF));
+                        /* Not ASCII */
+                        Character = 0;
                     }
+
+                    /* Push it onto the BIOS keyboard queue */
+                    BiosKbdBufferPush((ScanCode << 8) | (Character & 0xFF));
+
                 }
                 else
                 {