VirtualBox

Changeset 28139 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 9, 2010 12:05:43 PM (15 years ago)
Author:
vboxsync
Message:

VBoxManage: allow to set --natnet default (3.1 regression)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r28106 r28139  
    12561256
    12571257                CHECK_ERROR(nic, COMGETTER(NatDriver)(driver.asOutParam()));
    1258                 CHECK_ERROR(driver, COMSETTER(Network)(Bstr(ValueUnion.psz)));
     1258
     1259                const char *psz = ValueUnion.psz;
     1260                if (!strcmp("default", psz))
     1261                    psz = "";
     1262
     1263                CHECK_ERROR(driver, COMSETTER(Network)(Bstr(psz)));
    12591264                break;
    12601265            }
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