X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=subsystems%2Fntvdm%2Fbios.c;h=7807e67c75d8a00506c3fbe91fe55d160bce7931;hp=efb37182d91029f8dda69d7243e5537e14634046;hb=7e0285b7106912899ded59fc86aef32f35b69116;hpb=37430c188bd80aacf4bec46f50282125be4548d5 diff --git a/subsystems/ntvdm/bios.c b/subsystems/ntvdm/bios.c index efb37182d91..7807e67c75d 100644 --- a/subsystems/ntvdm/bios.c +++ b/subsystems/ntvdm/bios.c @@ -1132,9 +1132,9 @@ VOID BiosHandleIrq(BYTE IrqNumber, LPWORD Stack) { BYTE ScanCode, VirtualKey; WORD Character; - + /* Loop while there is a scancode available */ - while (KeyboardReadStatus() & 1) + do { /* Get the scan code and virtual key code */ ScanCode = KeyboardReadData(); @@ -1173,6 +1173,7 @@ VOID BiosHandleIrq(BYTE IrqNumber, LPWORD Stack) BiosKeyboardMap[VirtualKey] &= ~(1 << 7); } } + while (KeyboardReadStatus() & 1); /* Clear the keyboard flags */ Bda->KeybdShiftFlags = 0;