- don't calc the same values multiple times

svn path=/trunk/; revision=37625
This commit is contained in:
Matthias Kupfer 2008-11-24 21:28:42 +00:00
parent 6b4a3178e3
commit 71e3048893

View file

@ -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;