Author: hbelusca
Date: Sun May 8 13:50:38 2016
New Revision: 71284
URL:
http://svn.reactos.org/svn/reactos?rev=71284&view=rev
Log:
[USETUP]: Fix typo in SectorCount.QuadPart calculation (and add ULONGLONG casts).
By Victor Martinez Calvo.
CORE-11205 #resolve
Modified:
trunk/reactos/base/setup/usetup/cmdcons.c
Modified: trunk/reactos/base/setup/usetup/cmdcons.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/cmdcons.…
==============================================================================
--- trunk/reactos/base/setup/usetup/cmdcons.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/cmdcons.c [iso-8859-1] Sun May 8 13:50:38 2016
@@ -428,8 +428,8 @@
DPRINT1("Sector: %I64u\n", Sector.QuadPart);
SectorCount.QuadPart = DiskGeometry.Cylinders.QuadPart *
- DiskGeometry.TracksPerCylinder,
- DiskGeometry.SectorsPerTrack;
+ (ULONGLONG)DiskGeometry.TracksPerCylinder *
+ (ULONGLONG)DiskGeometry.SectorsPerTrack;
if (Sector.QuadPart >= SectorCount.QuadPart)
{
CONSOLE_ConOutPrintf("Invalid sector number! Valid range: [0 -
%I64u]\n", SectorCount.QuadPart - 1);