Author: akhaldi
Date: Wed Jun 10 09:56:48 2015
New Revision: 68100
URL:
http://svn.reactos.org/svn/reactos?rev=68100&view=rev
Log:
[USETUP] 1024 * 1024 is 1048576 not 1048756. Spotted by Mike Nordell aka tamlin.
CORE-9792
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] Wed Jun 10 09:56:48 2015
@@ -1189,9 +1189,9 @@
{
DPRINT("Use %lu Sector alignment!\n",
DiskEntry->SectorsPerTrack);
}
- else if
(DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart % 1048756 == 0)
- {
- DPRINT1("Use megabyte (%lu Sectors) alignment!\n", 1048756 /
DiskEntry->BytesPerSector);
+ else if
(DiskEntry->LayoutBuffer->PartitionEntry[0].StartingOffset.QuadPart % (1024 * 1024)
== 0)
+ {
+ DPRINT1("Use megabyte (%lu Sectors) alignment!\n", (1024 *
1024) / DiskEntry->BytesPerSector);
}
else
{
@@ -1200,7 +1200,7 @@
}
else
{
- DPRINT1("No valid partiton table found! Use megabyte (%lu Sectors)
alignment!\n", 1048756 / DiskEntry->BytesPerSector);
+ DPRINT1("No valid partiton table found! Use megabyte (%lu Sectors)
alignment!\n", (1024 * 1024) / DiskEntry->BytesPerSector);
}