VirtualBox

Ignore:
Timestamp:
Oct 23, 2009 5:46:20 PM (15 years ago)
Author:
vboxsync
Message:

ApplianceImpl: Create IDE controller during import instead of assuming it is there already.

File:
1 edited

Legend:

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

    r23880 r24046  
    14521452            {
    14531453                ComPtr<IStorageController> pController;
    1454                 rc = pNewMachine->GetStorageControllerByName(Bstr("IDE Controller"), pController.asOutParam());
     1454                rc = pNewMachine->AddStorageController(Bstr("IDE Controller"), StorageBus_IDE, pController.asOutParam());
    14551455                if (FAILED(rc)) throw rc;
    14561456
     
    14801480                if (hdcVBox == "AHCI")
    14811481                {
    1482                     rc = pNewMachine->AddStorageController(Bstr("SATA"), StorageBus_SATA, pController.asOutParam());
     1482                    rc = pNewMachine->AddStorageController(Bstr("SATA Controller"), StorageBus_SATA, pController.asOutParam());
    14831483                    if (FAILED(rc)) throw rc;
    14841484                }
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