VirtualBox

Changeset 99466 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 19, 2023 7:42:38 PM (20 months ago)
Author:
vboxsync
Message:

Main/MediumImpl.cpp: Corrected incorrect MediaList::const_reverse_iterator use.

File:
1 edited

Legend:

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

    r98847 r99466  
    14911491        Assert(llParentsTodo.size() == 0);
    14921492        /* Create the list of notifications, parent first. */
    1493         MediaList::const_reverse_iterator itBegin = llMediaTocleanup.rbegin();
    1494         MediaList::const_reverse_iterator itEnd = llMediaTocleanup.rend();
    1495         for (MediaList::const_reverse_iterator it = itBegin; it != itEnd; --it)
     1493        for (MediaList::const_reverse_iterator it = llMediaTocleanup.rbegin(); it != llMediaTocleanup.rend(); ++it)
    14961494        {
    14971495            ComObjPtr<Medium> pMedium = *it;
    14981496            AutoCaller mediumCaller(pMedium);
    1499             if (FAILED(mediumCaller.hrc())) continue;
    1500             const Guid &id = pMedium->i_getId();
    1501             uIdsForNotify.push_back(std::pair<Guid, DeviceType_T>(id, aDeviceType));
     1497            if (mediumCaller.isOk())
     1498            {
     1499                const Guid &id = pMedium->i_getId();
     1500                uIdsForNotify.push_back(std::pair<Guid, DeviceType_T>(id, aDeviceType));
     1501            }
    15021502        }
    15031503    }
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