mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
parent
33a4dde3d1
commit
6fe7914710
|
@ -1786,8 +1786,8 @@ CreatePartitionPage (PINPUT_RECORD Ir)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Round-up by cylinder size */
|
/* Round-up by cylinder size */
|
||||||
PartSize = ROUND_UP (PartSize * 1024 * 1024,
|
PartSize = (PartSize * 1024 * 1024 + DiskEntry->CylinderSize - 1) /
|
||||||
DiskEntry->CylinderSize);
|
DiskEntry->CylinderSize * DiskEntry->CylinderSize;
|
||||||
|
|
||||||
/* But never get larger than the unpartitioned disk space */
|
/* But never get larger than the unpartitioned disk space */
|
||||||
if (PartSize > PartEntry->UnpartitionedLength)
|
if (PartSize > PartEntry->UnpartitionedLength)
|
||||||
|
|
Loading…
Reference in a new issue