VirtualBox

忽略:
時間撮記:
2014-6-30 下午06:14:13 (10 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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());
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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