Author: aandrejevic
Date: Wed Dec 4 00:43:11 2013
New Revision: 61215
URL:
http://svn.reactos.org/svn/reactos?rev=61215&view=rev
Log:
[NTVDM]
Also serialize access to KeyboardQueueEmpty.
Modified:
branches/ntvdm/subsystems/ntvdm/ps2.c
Modified: branches/ntvdm/subsystems/ntvdm/ps2.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/ps2.c?re…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/ps2.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/ps2.c [iso-8859-1] Wed Dec 4 00:43:11 2013
@@ -93,8 +93,12 @@
{
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;