mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[NTVDM]
Also serialize access to KeyboardQueueEmpty. svn path=/branches/ntvdm/; revision=61215
This commit is contained in:
parent
73186a64bd
commit
6dde554aa8
1 changed files with 4 additions and 0 deletions
|
@ -93,9 +93,13 @@ BYTE KeyboardReadStatus()
|
|||
{
|
||||
BYTE Status = 0;
|
||||
|
||||
WaitForSingleObject(QueueMutex, INFINITE);
|
||||
|
||||
/* Set the first bit if the data can be read */
|
||||
if (KeyboardReadResponse || !KeyboardQueueEmpty) Status |= 1 << 0;
|
||||
|
||||
ReleaseMutex(QueueMutex);
|
||||
|
||||
/* Always set bit 2 */
|
||||
Status |= 1 << 2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue