- Timestamp:
- Aug 13, 2012 9:49:33 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r42757 r42788 5945 5945 { 5946 5946 /* find all attached devices to the appropriate storage controller and detach them all*/ 5947 MediaData::AttachmentList::const_iterator endList = mMediaData->mAttachments.end();5948 5947 MediaData::AttachmentList::const_iterator it = mMediaData->mAttachments.begin(); 5949 for (;it != endList; it++) 5950 { 5951 MediumAttachment *pAttachTemp = *it; 5948 5949 uint16_t howManyAttach = mMediaData->mAttachments.size(); 5950 5951 for (uint16_t i=0;i<howManyAttach; ++i) 5952 { 5953 MediumAttachment *pAttachTemp = *it++; 5954 5952 5955 AutoCaller localAutoCaller(pAttachTemp); 5953 5956 if (FAILED(localAutoCaller.rc())) return localAutoCaller.rc(); … … 5959 5962 LONG port = pAttachTemp->getPort(); 5960 5963 LONG device = pAttachTemp->getDevice(); 5961 rc = DetachDevice(aName, port, device); 5964 5965 //rc = DetachDevice(aName, port, device); 5966 rc = detachDevice(pAttachTemp, alock, NULL); 5962 5967 if (FAILED(rc)) return rc; 5963 5968 }
Note:
See TracChangeset
for help on using the changeset viewer.