VirtualBox

Changeset 40505 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Mar 16, 2012 4:49:59 PM (13 years ago)
Author:
vboxsync
Message:

Main/NetworkAdapter: properly restore bandwidth group attribute from saved state

File:
1 edited

Legend:

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

    r40491 r40505  
    11771177    mData->mBootPriority = data.ulBootPriority;
    11781178    /* bandwidth group */
    1179     if (data.strBandwidthGroup.isEmpty())
    1180         updateBandwidthGroup(NULL);
    1181     else
     1179    mData->mBandwidthGroup = data.strBandwidthGroup;
     1180    if (mData->mBandwidthGroup.isNotEmpty())
    11821181    {
    11831182        ComObjPtr<BandwidthGroup> group;
    11841183        rc = bwctl->getBandwidthGroupByName(data.strBandwidthGroup, group, true);
    11851184        if (FAILED(rc)) return rc;
     1185        group->reference();
    11861186    }
    11871187
     
    14431443        }
    14441444
    1445         mData.backup();
    1446 
    14471445        updateBandwidthGroup(pBwGroup);
    14481446
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