Changeset 104171 in vbox
- Timestamp:
- Apr 5, 2024 9:08:56 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r101016 r104171 3222 3222 3223 3223 uTargetIdCCB = pThis->fMbxIs24Bit ? CCBGuest.o.uTargetId : CCBGuest.n.uTargetId; 3224 if (RT_LIKELY(uTargetIdCCB < RT_ELEMENTS(pThisCC->aDeviceStates))) 3224 if ( RT_LIKELY(uTargetIdCCB < RT_ELEMENTS(pThisCC->aDeviceStates)) 3225 && CCBGuest.c.cbCDB <= RT_ELEMENTS(CCBGuest.c.abCDB)) 3225 3226 { 3226 3227 PBUSLOGICDEVICE pTgtDev = &pThisCC->aDeviceStates[uTargetIdCCB]; … … 3443 3444 3444 3445 if (RT_LIKELY( pCmd->uTargetId < RT_ELEMENTS(pThisCC->aDeviceStates) 3445 && pCmd->cbCDB <= 16))3446 && pCmd->cbCDB <= RT_ELEMENTS(pCmd->abCDB))) 3446 3447 { 3447 3448 PBUSLOGICDEVICE pTgtDev = &pThisCC->aDeviceStates[pCmd->uTargetId];
Note:
See TracChangeset
for help on using the changeset viewer.