Author: fireball
Date: Tue Apr 14 20:53:22 2009
New Revision: 40506
URL:
http://svn.reactos.org/svn/reactos?rev=40506&view=rev
Log:
- Display unpartitioned and unformatted entries in a partition table. Fixes problems when
installing on an absolutely clean harddisk.
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] Tue Apr 14 20:53:22 2009
@@ -1362,7 +1362,8 @@
/* Print disk entry */
for (i=0; i<4; i++)
{
- if (PartEntry->PartInfo[i].PartitionType != PARTITION_ENTRY_UNUSED)
+ if (PartEntry->PartInfo[i].PartitionType != PARTITION_ENTRY_UNUSED ||
+ PartEntry->PartInfo[i].PartitionLength.QuadPart != 0ULL)
{
PrintPartitionData (List,
DiskEntry,
@@ -1370,6 +1371,16 @@
i);
}
}
+
+ /* Print unpartitioned entry */
+ if (PartEntry->Unpartitioned || PartEntry->New)
+ {
+ PrintPartitionData (List,
+ DiskEntry,
+ PartEntry,
+ 0);
+ }
+
}
/* Print separator line */