Changeset 41983 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 2, 2012 12:23:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevHPET.cpp
r40280 r41983 443 443 Assert(PDMCritSectIsOwner(&pThis->csLock)); 444 444 445 if (iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities)) 445 if ( iTimerNo >= RT_ELEMENTS(pThis->aTimers) /* parfait */ 446 || iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities)) 446 447 { 447 448 static unsigned s_cOccurences = 0; … … 511 512 Assert(!PDMCritSectIsOwner(&pThis->csLock) || TMTimerIsLockOwner(pThis->aTimers[0].CTX_SUFF(pTimer))); 512 513 513 if (iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities)) 514 if ( iTimerNo >= RT_ELEMENTS(pThis->aTimers) /* parfait */ 515 || iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities)) 514 516 { 515 517 static unsigned s_cOccurences = 0;
Note:
See TracChangeset
for help on using the changeset viewer.