mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[USETUP]: Fix typo in SectorCount.QuadPart calculation (and add ULONGLONG casts).
By Victor Martinez Calvo. CORE-11205 #resolve svn path=/trunk/; revision=71284
This commit is contained in:
parent
dcf5329778
commit
ea332e56c0
1 changed files with 2 additions and 2 deletions
|
@ -428,8 +428,8 @@ CommandDumpSector(
|
||||||
DPRINT1("Sector: %I64u\n", Sector.QuadPart);
|
DPRINT1("Sector: %I64u\n", Sector.QuadPart);
|
||||||
|
|
||||||
SectorCount.QuadPart = DiskGeometry.Cylinders.QuadPart *
|
SectorCount.QuadPart = DiskGeometry.Cylinders.QuadPart *
|
||||||
DiskGeometry.TracksPerCylinder,
|
(ULONGLONG)DiskGeometry.TracksPerCylinder *
|
||||||
DiskGeometry.SectorsPerTrack;
|
(ULONGLONG)DiskGeometry.SectorsPerTrack;
|
||||||
if (Sector.QuadPart >= SectorCount.QuadPart)
|
if (Sector.QuadPart >= SectorCount.QuadPart)
|
||||||
{
|
{
|
||||||
CONSOLE_ConOutPrintf("Invalid sector number! Valid range: [0 - %I64u]\n", SectorCount.QuadPart - 1);
|
CONSOLE_ConOutPrintf("Invalid sector number! Valid range: [0 - %I64u]\n", SectorCount.QuadPart - 1);
|
||||||
|
|
Loading…
Reference in a new issue