VirtualBox

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


Ignore:
Timestamp:
Jun 6, 2014 11:51:41 AM (11 years ago)
Author:
vboxsync
Message:

6813 MachineImpl.cpp server side com wrapper API useage - further fix

File:
1 edited

Legend:

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

    r51512 r51567  
    65776577    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    65786578
    6579     SafeIfaceArray<IPCIDeviceAttachment> assignments(mHWData->mPCIDeviceAssignments);
    6580     aPCIDeviceAssignments.resize(assignments.size());
    6581     for (size_t i = 0; i < assignments.size(); ++i)
    6582         aPCIDeviceAssignments[i] = assignments[i];
     6579    aPCIDeviceAssignments.resize(mHWData->mPCIDeviceAssignments.size());
     6580
     6581    size_t i = 0;
     6582    for (std::list<ComObjPtr<PCIDeviceAttachment> >::const_iterator it = mHWData->mPCIDeviceAssignments.begin();
     6583         it != mHWData->mPCIDeviceAssignments.end();
     6584         ++i, ++it)
     6585        (*it).queryInterfaceTo(aPCIDeviceAssignments[i].asOutParam());
     6586
    65836587    return S_OK;
    65846588}
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