Author: mkupfer
Date: Mon Nov 24 15:28:42 2008
New Revision: 37625
URL:
http://svn.reactos.org/svn/reactos?rev=37625&view=rev
Log:
- don't calc the same values multiple times
Modified:
trunk/reactos/base/setup/usetup/partlist.c
Modified: trunk/reactos/base/setup/usetup/partlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] Mon Nov 24 15:28:42 2008
@@ -836,18 +836,15 @@
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;