VirtualBox

Changeset 18011 in vbox


Ignore:
Timestamp:
Mar 17, 2009 10:32:56 AM (16 years ago)
Author:
vboxsync
Message:

VBoxManageDhcp: allow VBoxManage modify -disable / -enable without further changing the server parameters

File:
1 edited

Legend:

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

    r17892 r18011  
    253253    if(enmCode != OP_REMOVE)
    254254    {
    255         CHECK_ERROR(svr, SetConfiguration (Bstr(pIp).mutableRaw(), Bstr(pNetmask).mutableRaw(), Bstr(pLowerIp).mutableRaw(), Bstr(pUpperIp).mutableRaw()));
    256         if(FAILED(rc))
    257             return errorArgument("failed to set configuration");
     255        if (pIp || pNetmask || pLowerIp || pUpperIp)
     256        {
     257            CHECK_ERROR(svr, SetConfiguration (Bstr(pIp).mutableRaw(), Bstr(pNetmask).mutableRaw(), Bstr(pLowerIp).mutableRaw(), Bstr(pUpperIp).mutableRaw()));
     258            if(FAILED(rc))
     259                return errorArgument("failed to set configuration");
     260        }
    258261
    259262        if(enable >= 0)
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