mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +00:00
- 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:
parent
5e06a4d83d
commit
db2b8f5c36
1 changed files with 12 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue