Changeset 49423 in vbox for trunk/src/VBox
- Timestamp:
- Nov 8, 2013 4:25:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DrvKeyboardQueue.cpp
r44528 r49423 52 52 /** The queue handle. */ 53 53 PPDMQUEUE pQueue; 54 /** Discard input when this flag is set. 55 * We only accept input when the VM is running. */ 54 /** Discard input when this flag is set. */ 56 55 bool fInactive; 56 /** When VM is suspended, queue full errors are not fatal. */ 57 bool fSuspended; 57 58 } DRVKBDQUEUE, *PDRVKBDQUEUE; 58 59 … … 106 107 { 107 108 PDRVKBDQUEUE pDrv = IKEYBOARDPORT_2_DRVKBDQUEUE(pInterface); 109 /* Ignore any attempt to send events if queue is inactive. */ 108 110 if (pDrv->fInactive) 109 111 return VINF_SUCCESS; … … 116 118 return VINF_SUCCESS; 117 119 } 118 AssertMsgFailed(("drvKbdQueuePutEvent: Queue is full!!!!\n")); 120 if (!pDrv->fSuspended) 121 AssertMsgFailed(("drvKbdQueuePutEvent: Queue is full!!!!\n")); 119 122 return VERR_PDM_NO_QUEUE_ITEMS; 120 123 } … … 209 212 { 210 213 PDRVKBDQUEUE pThis = PDMINS_2_DATA(pDrvIns, PDRVKBDQUEUE); 211 pThis->f Inactive= true;214 pThis->fSuspended = true; 212 215 } 213 216 … … 222 225 { 223 226 PDRVKBDQUEUE pThis = PDMINS_2_DATA(pDrvIns, PDRVKBDQUEUE); 224 pThis->f Inactive= false;227 pThis->fSuspended = false; 225 228 } 226 229 … … 259 262 */ 260 263 pDrv->fInactive = true; 264 pDrv->fSuspended = false; 261 265 /* IBase. */ 262 266 pDrvIns->IBase.pfnQueryInterface = drvKbdQueueQueryInterface;
Note:
See TracChangeset
for help on using the changeset viewer.