mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:56:56 +00:00
parent
33a4dde3d1
commit
6fe7914710
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue