Changeset 42022 in vbox
- Timestamp:
- Jul 5, 2012 6:43:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r42021 r42022 2573 2573 mHWData.backup(); 2574 2574 mHWData->mClipboardMode = aClipboardMode; 2575 2575 2576 2576 /* Save settings if online - todo why is this required?? */ 2577 2577 if (Global::IsOnline(mData->mMachineState)) … … 5831 5831 MediaData::AttachmentList::const_iterator endList = mMediaData->mAttachments.end(); 5832 5832 MediaData::AttachmentList::const_iterator it = mMediaData->mAttachments.begin(); 5833 MediumAttachment *pAttachTemp=NULL;5834 LONG port = 0;5835 LONG device = 0;5836 5837 5833 for (;it != endList; it++) 5838 5834 { 5839 pAttachTemp = *it;5835 MediumAttachment *pAttachTemp = *it; 5840 5836 AutoCaller localAutoCaller(pAttachTemp); 5841 5837 if (FAILED(localAutoCaller.rc())) return localAutoCaller.rc(); … … 5845 5841 if (pAttachTemp->getControllerName() == aName) 5846 5842 { 5847 5848 port = pAttachTemp->getPort(); 5849 5850 device = pAttachTemp->getDevice(); 5851 5843 LONG port = pAttachTemp->getPort(); 5844 LONG device = pAttachTemp->getDevice(); 5852 5845 rc = DetachDevice(aName, port, device); 5853 5846 if (FAILED(rc)) return rc;
Note:
See TracChangeset
for help on using the changeset viewer.