VirtualBox

Changeset 34057 in vbox


Ignore:
Timestamp:
Nov 13, 2010 6:41:49 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67739
Message:

Main: Unset the bootable flag on other controllers automatically instead of throwing an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r34010 r34057  
    52285228    if (SUCCEEDED(rc))
    52295229    {
    5230         /* Check that only one controller of each type is marked as bootable. */
     5230        /* Ensure that only one controller of each type is marked as bootable. */
    52315231        if (fBootable == TRUE)
    52325232        {
     
    52425242                    && aCtrl->getControllerType() == ctrl->getControllerType())
    52435243                {
    5244                     rc = setError(VBOX_E_OBJECT_IN_USE,
    5245                                   tr("Another storage controller '%s' is already marked as bootable"),
    5246                                   aCtrl->getName().c_str());
     5244                    aCtrl->setBootable(FALSE);
    52475245                    break;
    52485246                }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette