VirtualBox

Ignore:
Timestamp:
Nov 9, 2009 12:12:28 PM (15 years ago)
Author:
vboxsync
Message:

Main/Appliance: fix SCSI controller import (use long name now), and make sure that the right name gets used in the config file depending on the version.

File:
1 edited

Legend:

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

    r24258 r24494  
    17151715
    17161716                            case HardDiskController::SATA:
    1717                                 mhda.controllerType = Bstr("SATA");
     1717                                mhda.controllerType = Bstr("SATA Controller");
    17181718                                mhda.lChannel = (long)vd.ulAddressOnParent;
    17191719                                mhda.lDevice = (long)0;
     
    17211721
    17221722                            case HardDiskController::SCSI:
    1723                                 mhda.controllerType = Bstr("SCSI");
     1723                                mhda.controllerType = Bstr("SCSI Controller");
    17241724                                mhda.lChannel = (long)vd.ulAddressOnParent;
    17251725                                mhda.lDevice = (long)0;
     
    28642864                // it'll stick in the registry forever
    28652865                pTargetDisk->Close();
    2866                 throw;
     2866                throw rc3;
    28672867            }
    28682868            diskList.push_back(strTargetFilePath);
     
    43984398#ifdef VBOX_WITH_AHCI
    43994399//     <const name="HardDiskControllerSATA" value="7" />
    4400         rc = GetStorageControllerByName(Bstr("SATA"), pController.asOutParam());
     4400        rc = GetStorageControllerByName(Bstr("SATA Controller"), pController.asOutParam());
    44014401        if (SUCCEEDED(rc))
    44024402        {
     
    44124412#ifdef VBOX_WITH_LSILOGIC
    44134413//     <const name="HardDiskControllerSCSI" value="8" />
    4414         rc = GetStorageControllerByName(Bstr("SCSI"), pController.asOutParam());
     4414        rc = GetStorageControllerByName(Bstr("SCSI Controller"), pController.asOutParam());
    44154415        if (SUCCEEDED(rc))
    44164416        {
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