mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +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);
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue