mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
- don't calc the same values multiple times
svn path=/trunk/; revision=37625
This commit is contained in:
parent
6b4a3178e3
commit
71e3048893
|
@ -836,18 +836,15 @@ AddDiskToList (HANDLE FileHandle,
|
|||
DPRINT ("SectorsPerTrack %d\n", DiskEntry->SectorsPerTrack);
|
||||
DPRINT ("BytesPerSector %d\n", DiskEntry->BytesPerSector);
|
||||
|
||||
DiskEntry->DiskSize =
|
||||
DiskGeometry.Cylinders.QuadPart *
|
||||
(ULONGLONG)DiskGeometry.TracksPerCylinder *
|
||||
DiskEntry->TrackSize =
|
||||
(ULONGLONG)DiskGeometry.SectorsPerTrack *
|
||||
(ULONGLONG)DiskGeometry.BytesPerSector;
|
||||
DiskEntry->CylinderSize =
|
||||
(ULONGLONG)DiskGeometry.TracksPerCylinder *
|
||||
(ULONGLONG)DiskGeometry.SectorsPerTrack *
|
||||
(ULONGLONG)DiskGeometry.BytesPerSector;
|
||||
DiskEntry->TrackSize =
|
||||
(ULONGLONG)DiskGeometry.SectorsPerTrack *
|
||||
(ULONGLONG)DiskGeometry.BytesPerSector;
|
||||
DiskEntry->TrackSize;
|
||||
DiskEntry->DiskSize =
|
||||
DiskGeometry.Cylinders.QuadPart *
|
||||
DiskEntry->CylinderSize;
|
||||
|
||||
DiskEntry->DiskNumber = DiskNumber;
|
||||
DiskEntry->Port = ScsiAddress.PortNumber;
|
||||
|
|
Loading…
Reference in a new issue