mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Roel Messiant <roelmessiant@gmail.com>
- Fix one of the oldest bugs: "ROS can not parse partition table corectly". The original macro that calculates the space casts the value to ULONG, while ULONGLONG math is required here. See issue #950 for more details. svn path=/trunk/; revision=34174
This commit is contained in:
parent
911fc42a9f
commit
16d2ca207f
1 changed files with 2 additions and 2 deletions
|
@ -406,8 +406,8 @@ ScanForUnpartitionedDiskSpace (PDISKENTRY DiskEntry)
|
||||||
{
|
{
|
||||||
/* Round-down to cylinder size */
|
/* Round-down to cylinder size */
|
||||||
LastUnusedPartitionLength =
|
LastUnusedPartitionLength =
|
||||||
ROUND_DOWN (DiskEntry->DiskSize - (LastStartingOffset + LastPartitionLength),
|
(DiskEntry->DiskSize - (LastStartingOffset + LastPartitionLength))
|
||||||
DiskEntry->CylinderSize);
|
& ~(DiskEntry->CylinderSize - 1);
|
||||||
|
|
||||||
if (LastUnusedPartitionLength >= DiskEntry->CylinderSize)
|
if (LastUnusedPartitionLength >= DiskEntry->CylinderSize)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue