VirtualBox

Changeset 51765 in vbox


Ignore:
Timestamp:
Jun 30, 2014 6:14:13 PM (10 years ago)
Author:
vboxsync
Message:

Main/src-client: fix SEGFAULT when returning USB devices and Shared Folders lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r51752 r51765  
    19831983
    19841984    size_t i = 0;
     1985    aUSBDevices.resize(mUSBDevices.size());
    19851986    for (USBDeviceList::const_iterator it = mUSBDevices.begin(); it != mUSBDevices.end(); ++i, ++it)
    19861987        (*it).queryInterfaceTo(aUSBDevices[i].asOutParam());
     
    19951996
    19961997    size_t i = 0;
     1998    aRemoteUSBDevices.resize(mRemoteUSBDevices.size());
    19971999    for (RemoteUSBDeviceList::const_iterator it = mRemoteUSBDevices.begin(); it != mRemoteUSBDevices.end(); ++i, ++it)
    19982000        (*it).queryInterfaceTo(aRemoteUSBDevices[i].asOutParam());
     
    20272029
    20282030    size_t i = 0;
     2031    aSharedFolders.resize(m_mapSharedFolders.size());
    20292032    for (SharedFolderMap::const_iterator it = m_mapSharedFolders.begin(); it != m_mapSharedFolders.end(); ++i, ++it)
    20302033        (it)->second.queryInterfaceTo(aSharedFolders[i].asOutParam());
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