Changeset 20629 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jun 16, 2009 1:40:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r20290 r20629 1158 1158 RawDescriptor.pPartitions[i].cbPartition = partitions.aPartitions[i].uSize * 512; 1159 1159 RawDescriptor.pPartitions[i].uPartitionDataStart = partitions.aPartitions[i].uPartDataStart * 512; 1160 RawDescriptor.pPartitions[i].cbPartitionData = partitions.aPartitions[i].cPartDataSectors * 512; 1160 /** @todo the clipping below isn't 100% accurate, as it should 1161 * actually clip to the track size. However that's easier said 1162 * than done as figuring out the track size is heuristics. */ 1163 RawDescriptor.pPartitions[i].cbPartitionData = RT_MIN(partitions.aPartitions[i].cPartDataSectors, 63) * 512; 1161 1164 if (RawDescriptor.pPartitions[i].cbPartitionData) 1162 1165 {
Note:
See TracChangeset
for help on using the changeset viewer.