Changeset 17870 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 14, 2009 4:32:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17869 r17870 3439 3439 Utf8StrFmt("%d", lIDEControllerIndex), 3440 3440 strVbox, 3441 "");3441 strVbox); 3442 3442 } 3443 3443 … … 3445 3445 // <const name="HardDiskControllerSATA" value="7" /> 3446 3446 rc = GetStorageControllerByName(Bstr("SATA"), pController.asOutParam()); 3447 strVbox = "AHCI";3448 3447 if (SUCCEEDED(rc)) 3449 3448 { 3449 strVbox = "AHCI"; 3450 3450 lSATAControllerIndex = (int32_t)pNewDesc->m->llDescriptions.size(); 3451 3451 pNewDesc->addEntry(VirtualSystemDescriptionType_HardDiskControllerSATA, 3452 3452 Utf8StrFmt("%d", lSATAControllerIndex), 3453 3453 strVbox, 3454 "");3454 strVbox); 3455 3455 } 3456 3456 #endif // VBOX_WITH_AHCI … … 3458 3458 // <const name="HardDiskControllerSCSI" value="8" /> 3459 3459 rc = GetStorageControllerByName(Bstr("SCSI"), pController.asOutParam()); 3460 if (SUCCEEDED 3460 if (SUCCEEDED(rc)) 3461 3461 { 3462 3462 rc = pController->COMGETTER(ControllerType)(&ctlr); 3463 if (FAILED(rc)) throw rc;3464 strVbox = "LsiLogic"; // the default in VBox3465 switch(ctlr)3466 {3467 case StorageControllerType_LsiLogic: strVbox = "LsiLogic"; break;3468 case StorageControllerType_BusLogic: strVbox = "BusLogic"; break;3469 }3470 3463 if (SUCCEEDED(rc)) 3471 3464 { 3465 strVbox = "LsiLogic"; // the default in VBox 3466 switch(ctlr) 3467 { 3468 case StorageControllerType_LsiLogic: strVbox = "LsiLogic"; break; 3469 case StorageControllerType_BusLogic: strVbox = "BusLogic"; break; 3470 } 3472 3471 lSCSIControllerIndex = (int32_t)pNewDesc->m->llDescriptions.size(); 3473 3472 pNewDesc->addEntry(VirtualSystemDescriptionType_HardDiskControllerSCSI, 3474 3473 Utf8StrFmt("%d", lSCSIControllerIndex), 3475 3474 strVbox, 3476 "");3475 strVbox); 3477 3476 } 3477 else 3478 throw rc; 3478 3479 } 3479 3480
Note:
See TracChangeset
for help on using the changeset viewer.