Author: fireball
Date: Sun Jun 29 03:33:21 2008
New Revision: 34174
URL:
http://svn.reactos.org/svn/reactos?rev=34174&view=rev
Log:
Roel Messiant <roelmessiant(a)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.
Modified:
trunk/reactos/base/setup/usetup/partlist.c
Modified: trunk/reactos/base/setup/usetup/partlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/partlist…
==============================================================================
--- trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/partlist.c [iso-8859-1] Sun Jun 29 03:33:21 2008
@@ -406,8 +406,8 @@
{
/* Round-down to cylinder size */
LastUnusedPartitionLength =
- ROUND_DOWN (DiskEntry->DiskSize - (LastStartingOffset + LastPartitionLength),
- DiskEntry->CylinderSize);
+ (DiskEntry->DiskSize - (LastStartingOffset + LastPartitionLength))
+ & ~(DiskEntry->CylinderSize - 1);
if (LastUnusedPartitionLength >= DiskEntry->CylinderSize)
{