Changeset 7442 in vbox for trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui.h
- Timestamp:
- Mar 13, 2008 2:33:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui.h
r7250 r7442 1718 1718 struct 1719 1719 { 1720 KDiskControllerType ctl; 1720 KStorageBus bus; 1721 LONG channel; 1721 1722 LONG dev; 1722 1723 struct { … … 1729 1730 diskSet[] = 1730 1731 { 1731 { K DiskControllerType_IDE0, 0, {grbHDA, cbHDA, txHDA, &uuidHDA} },1732 { K DiskControllerType_IDE0, 1, {grbHDB, cbHDB, txHDB, &uuidHDB} },1733 { K DiskControllerType_IDE1, 1, {grbHDD, cbHDD, txHDD, &uuidHDD} },1732 { KStorageBus_IDE, 0, 0, {grbHDA, cbHDA, txHDA, &uuidHDA} }, 1733 { KStorageBus_IDE, 0, 1, {grbHDB, cbHDB, txHDB, &uuidHDB} }, 1734 { KStorageBus_IDE, 1, 1, {grbHDD, cbHDD, txHDD, &uuidHDD} }, 1734 1735 }; 1735 1736 … … 1745 1746 for (uint i = 0; i < SIZEOF_ARRAY (diskSet); i++) 1746 1747 { 1747 if (diskSet [i].ctl == hda.GetController() && 1748 diskSet [i].dev == hda.GetDeviceNumber()) 1748 if (diskSet [i].bus == hda.GetBus() && 1749 diskSet [i].channel == hda.GetChannel() && 1750 diskSet [i].dev == hda.GetDevice()) 1749 1751 { 1750 1752 CHardDisk hd = hda.GetHardDisk(); … … 2101 2103 struct 2102 2104 { 2103 KDiskControllerType ctl; 2105 KStorageBus bus; 2106 LONG channel; 2104 2107 LONG dev; 2105 2108 struct { … … 2110 2113 diskSet[] = 2111 2114 { 2112 { K DiskControllerType_IDE0, 0, {grbHDA, &uuidHDA} },2113 { K DiskControllerType_IDE0, 1, {grbHDB, &uuidHDB} },2114 { K DiskControllerType_IDE1, 1, {grbHDD, &uuidHDD} }2115 { KStorageBus_IDE, 0, 0, {grbHDA, &uuidHDA} }, 2116 { KStorageBus_IDE, 0, 1, {grbHDB, &uuidHDB} }, 2117 { KStorageBus_IDE, 1, 1, {grbHDD, &uuidHDD} } 2115 2118 }; 2116 2119 … … 2126 2129 for (uint i = 0; i < SIZEOF_ARRAY (diskSet); i++) 2127 2130 { 2128 if (diskSet [i].ctl == hda.GetController() && 2129 diskSet [i].dev == hda.GetDeviceNumber()) 2131 if (diskSet [i].bus == hda.GetBus() && 2132 diskSet [i].channel == hda.GetChannel() && 2133 diskSet [i].dev == hda.GetDevice()) 2130 2134 { 2131 cmachine.DetachHardDisk (diskSet [i]. ctl, diskSet [i].dev);2135 cmachine.DetachHardDisk (diskSet [i].bus, diskSet [i].channel, diskSet [i].dev); 2132 2136 if (!cmachine.isOk()) 2133 2137 vboxProblem().cannotDetachHardDisk ( 2134 this, cmachine, diskSet [i]. ctl, diskSet [i].dev);2138 this, cmachine, diskSet [i].bus, diskSet [i].channel, diskSet [i].dev); 2135 2139 } 2136 2140 } … … 2143 2147 if (diskSet [i].data.grb->isChecked() && !(*newId).isNull()) 2144 2148 { 2145 cmachine.AttachHardDisk (*newId, diskSet [i]. ctl, diskSet [i].dev);2149 cmachine.AttachHardDisk (*newId, diskSet [i].bus, diskSet [i].channel, diskSet [i].dev); 2146 2150 if (!cmachine.isOk()) 2147 2151 vboxProblem().cannotAttachHardDisk ( 2148 this, cmachine, *newId, diskSet [i]. ctl, diskSet [i].dev);2152 this, cmachine, *newId, diskSet [i].bus, diskSet [i].channel, diskSet [i].dev); 2149 2153 } 2150 2154 }
Note:
See TracChangeset
for help on using the changeset viewer.