Changeset 52525 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 29, 2014 9:37:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/VUSBDevice.cpp
r52522 r52525 1224 1224 /* Remove the configuration */ 1225 1225 pDev->pCurCfgDesc = NULL; 1226 for (unsigned i = 0; i < VUSB_PIPE_MAX; i++)1226 for (unsigned i = 0; i < RT_ELEMENTS(pDev->aPipes); i++) 1227 1227 { 1228 1228 vusbMsgFreeExtraData(pDev->aPipes[i].pCtrl); 1229 pDev->aPipes[i].pCtrl = NULL; 1229 1230 1230 1231 if (pDev->aPipes[i].hReadAhead) … … 1233 1234 pDev->aPipes[i].hReadAhead = NULL; 1234 1235 } 1235 } 1236 memset(pDev->aPipes, 0, sizeof(pDev->aPipes)); 1236 1237 RT_ZERO(pDev->aPipes[i].in); 1238 RT_ZERO(pDev->aPipes[i].out); 1239 pDev->aPipes[i].async = 0; 1240 } 1237 1241 return VINF_SUCCESS; 1238 1242 } … … 1263 1267 TMR3TimerDestroy(pDev->pResetTimer); 1264 1268 pDev->pResetTimer = NULL; 1265 for (unsigned i = 0; i < VUSB_PIPE_MAX; i++)1269 for (unsigned i = 0; i < RT_ELEMENTS(pDev->aPipes); i++) 1266 1270 RTCritSectDelete(&pDev->aPipes[i].CritSectCtrl); 1267 1271
Note:
See TracChangeset
for help on using the changeset viewer.