VirtualBox

Ignore:
Timestamp:
Aug 13, 2012 10:03:00 AM (12 years ago)
Author:
vboxsync
Message:

4.2.0 RC 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r42788 r42789  
    59445944
    59455945    {
    5946         /* find all attached devices to the appropriate storage controller and detach them all*/
    5947         MediaData::AttachmentList::const_iterator it = mMediaData->mAttachments.begin();
    5948 
    5949         uint16_t howManyAttach = mMediaData->mAttachments.size();
    5950 
    5951         for (uint16_t i=0;i<howManyAttach; ++i)
    5952         {
    5953             MediumAttachment *pAttachTemp = *it++;
     5946        /* find all attached devices to the appropriate storage controller and detach them all */
     5947        size_t howManyAttach = mMediaData->mAttachments.size();
     5948
     5949        for (size_t i = 0; i < howManyAttach; ++i)
     5950        {
     5951            MediumAttachment *pAttachTemp = mMediaData->mAttachments.front();
    59545952
    59555953            AutoCaller localAutoCaller(pAttachTemp);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette