VirtualBox

Changeset 23635 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 9, 2009 10:25:54 AM (15 years ago)
Author:
vboxsync
Message:

VBoxManage: error check

File:
1 edited

Legend:

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

    r23249 r23635  
    20322032                {
    20332033                    CHECK_ERROR(machine, AddStorageController(Bstr("BusLogic"), StorageBus_SCSI, ctl.asOutParam()));
    2034                     CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_BusLogic));
     2034                    if (SUCCEEDED(rc))
     2035                        CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_BusLogic));
    20352036                }
    20362037                else /* LsiLogic is default */
    20372038                {
    20382039                    CHECK_ERROR(machine, AddStorageController(Bstr("LsiLogic"), StorageBus_SCSI, ctl.asOutParam()));
    2039                     CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_LsiLogic));
     2040                    if (SUCCEEDED(rc))
     2041                        CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_LsiLogic));
    20402042                }
    20412043            }
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