mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[DISK]
Don't overflow when computing disk size. Patch by Vort. CORE-12261 svn path=/trunk/; revision=73113
This commit is contained in:
parent
ec670d6c25
commit
82425d713b
1 changed files with 1 additions and 1 deletions
|
@ -4283,7 +4283,7 @@ diskMatched:
|
|||
DeviceExtension->DiskGeometry->Geometry.SectorsPerTrack = sectorsPerTrack;
|
||||
DeviceExtension->DiskGeometry->Geometry.TracksPerCylinder = tracksPerCylinder;
|
||||
DeviceExtension->DiskGeometry->Geometry.Cylinders.QuadPart = (LONGLONG)cylinders;
|
||||
DeviceExtension->DiskGeometry->DiskSize.QuadPart = cylinders * tracksPerCylinder * sectorsPerTrack *
|
||||
DeviceExtension->DiskGeometry->DiskSize.QuadPart = (LONGLONG)cylinders * tracksPerCylinder * sectorsPerTrack *
|
||||
DeviceExtension->DiskGeometry->Geometry.BytesPerSector;
|
||||
|
||||
DebugPrint((3,
|
||||
|
|
Loading…
Reference in a new issue