- Timestamp:
- Mar 24, 2010 11:01:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r27302 r27660 1208 1208 * @returns nothing. 1209 1209 * @param pTaskState Pointer to the task state. 1210 */ 1211 static void buslogicSenseBufferFree(PBUSLOGICTASKSTATE pTaskState) 1210 * @param fCopy If sense data should be copied to guest memory. 1211 */ 1212 static void buslogicSenseBufferFree(PBUSLOGICTASKSTATE pTaskState, bool fCopy) 1212 1213 { 1213 1214 PPDMDEVINS pDevIns = pTaskState->CTX_SUFF(pTargetDevice)->CTX_SUFF(pBusLogic)->CTX_SUFF(pDevIns); … … 1216 1217 1217 1218 /* Copy into guest memory. */ 1218 PDMDevHlpPhysWrite(pDevIns, GCPhysAddrSenseBuffer, pTaskState->pbSenseBuffer, cbSenseBuffer); 1219 if (fCopy) 1220 PDMDevHlpPhysWrite(pDevIns, GCPhysAddrSenseBuffer, pTaskState->pbSenseBuffer, cbSenseBuffer); 1219 1221 1220 1222 RTMemFree(pTaskState->pbSenseBuffer); … … 1978 1980 1979 1981 if (pTaskState->pbSenseBuffer) 1980 buslogicSenseBufferFree(pTaskState );1982 buslogicSenseBufferFree(pTaskState, (rcCompletion != SCSI_STATUS_OK)); 1981 1983 1982 1984 buslogicSendIncomingMailbox(pBusLogic, pTaskState, … … 2069 2071 2070 2072 if (pTaskState->pbSenseBuffer) 2071 buslogicSenseBufferFree(pTaskState );2073 buslogicSenseBufferFree(pTaskState, true); 2072 2074 2073 2075 buslogicSendIncomingMailbox(pBusLogic, pTaskState,
Note:
See TracChangeset
for help on using the changeset viewer.