VirtualBox

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


Ignore:
Timestamp:
Aug 17, 2009 3:40:24 PM (15 years ago)
Author:
vboxsync
Message:

Main/XML: fix USB filter data not being saved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/USBControllerImpl.cpp

    r22173 r22303  
    625625    {
    626626        AutoWriteLock filterLock (*it);
    627         const USBDeviceFilter::Data &data = (*it)->data();
     627        const USBDeviceFilter::Data &filterData = (*it)->data();
    628628
    629629        Bstr str;
    630630
    631631        settings::USBDeviceFilter f;
    632         f.strName = data.mName;
    633         f.fActive = !!data.mActive;
     632        f.strName = filterData.mName;
     633        f.fActive = !!filterData.mActive;
    634634        (*it)->COMGETTER(VendorId)(str.asOutParam());
    635635        f.strVendorId = str;
     
    646646        (*it)->COMGETTER (Port) (str.asOutParam());
    647647        f.strPort = str;
    648         f.strRemote = data.mRemote.string();
    649         f.ulMaskedInterfaces = data.mMaskedIfs;
     648        f.strRemote = filterData.mRemote.string();
     649        f.ulMaskedInterfaces = filterData.mMaskedIfs;
     650
     651        data.llDeviceFilters.push_back(f);
    650652    }
    651653#endif /* VBOX_WITH_USB */
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