summaryrefslogtreecommitdiff
path: root/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
diff options
context:
space:
mode:
authorMichael Meskes <meskes@debian.org>2009-11-19 17:48:11 +0100
committerMichael Meskes <meskes@debian.org>2009-11-19 17:48:11 +0100
commitfd892711c6bdc0ef96b6b3ea13b668cb2a38196e (patch)
treee6ec126da2bcd6a490d5661118630edf983580ec /src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
parent8dc3a7e38d0783262b1aa8c3462e7359d8996d98 (diff)
parentb35715c68a1bec309bc1990353e35c20a21d5c47 (diff)
downloadvirtualbox-debian/3.0.10-dfsg-2bpo50+1.tar.gz
Merge branch 'master' into lennydebian/3.0.10-dfsg-2bpo50+1
Conflicts: debian/changelog
Diffstat (limited to 'src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp')
-rw-r--r--src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp b/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
index 232b7dd87..3df530498 100644
--- a/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
+++ b/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
@@ -1975,12 +1975,14 @@ int handleModifyVM(HandlerArg *a)
if (!fScsiLsiLogic)
{
CHECK_ERROR(machine, AddStorageController(Bstr("BusLogic"), StorageBus_SCSI, ctl.asOutParam()));
- CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_BusLogic));
+ if (SUCCEEDED(rc))
+ CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_BusLogic));
}
else /* LsiLogic is default */
{
CHECK_ERROR(machine, AddStorageController(Bstr("LsiLogic"), StorageBus_SCSI, ctl.asOutParam()));
- CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_LsiLogic));
+ if (SUCCEEDED(rc))
+ CHECK_ERROR(ctl, COMSETTER(ControllerType)(StorageControllerType_LsiLogic));
}
}
else