VirtualBox

Changeset 92168 in vbox for trunk


Ignore:
Timestamp:
Nov 1, 2021 2:35:01 PM (3 years ago)
Author:
vboxsync
Message:

Main/HostOnlyNet: bugref:9932 Save host-only networks upon creation.

File:
1 edited

Legend:

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

    r91743 r92168  
    14721472    m->allHostOnlyNetworks.addChild(HostOnlyNetwork);
    14731473
    1474     HostOnlyNetwork.queryInterfaceTo(aNetwork.asOutParam());
     1474    {
     1475        AutoWriteLock vboxLock(this COMMA_LOCKVAL_SRC_POS);
     1476        rc = i_saveSettings();
     1477        vboxLock.release();
     1478
     1479        if (FAILED(rc))
     1480            m->allHostOnlyNetworks.removeChild(HostOnlyNetwork);
     1481        else
     1482            HostOnlyNetwork.queryInterfaceTo(aNetwork.asOutParam());
     1483    }
    14751484
    14761485    return rc;
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