- Display unpartitioned and unformatted entries in a partition table. Fixes problems when installing on an absolutely clean harddisk.

svn path=/trunk/; revision=40506
This commit is contained in:
Aleksey Bragin 2009-04-14 16:53:22 +00:00
parent 5e06a4d83d
commit db2b8f5c36

View file

@ -1362,7 +1362,8 @@ PrintDiskData (PPARTLIST List,
/* 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 @@ PrintDiskData (PPARTLIST List,
i);
}
}
/* Print unpartitioned entry */
if (PartEntry->Unpartitioned || PartEntry->New)
{
PrintPartitionData (List,
DiskEntry,
PartEntry,
0);
}
}
/* Print separator line */