Changeset 23854 in vbox
- Timestamp:
- Oct 19, 2009 11:34:03 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53622
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsHD.cpp
r23723 r23854 1781 1781 CStorageController ctr = mMachine.AddStorageController (ctrName, ctrBusType); 1782 1782 ctr.SetControllerType (ctrType); 1783 int maxUsedPort = -1; 1783 1784 for (int j = 0; j < mStorageModel->rowCount (ctrIndex); ++ j) 1784 1785 { … … 1791 1792 attachment.SetPassthrough (mStorageModel->data (attIndex, StorageModel::R_AttIsHostDrive).toBool() && 1792 1793 mStorageModel->data (attIndex, StorageModel::R_AttIsPassthrough).toBool()); 1794 maxUsedPort = attStorageSlot.port > maxUsedPort ? attStorageSlot.port : maxUsedPort; 1795 } 1796 if (ctrBusType == KStorageBus_SATA) 1797 { 1798 ULONG sataPortsCount = maxUsedPort + 1; 1799 sataPortsCount = qMax (sataPortsCount, ctr.GetMinPortCount()); 1800 sataPortsCount = qMin (sataPortsCount, ctr.GetMaxPortCount()); 1801 ctr.SetPortCount (sataPortsCount); 1793 1802 } 1794 1803 }
Note:
See TracChangeset
for help on using the changeset viewer.