Allow setup to detect extended partitions

svn path=/trunk/; revision=23896
This commit is contained in:
Hervé Poussineau 2006-09-03 12:32:15 +00:00
parent d8155f97a7
commit 25090facc3

View file

@ -214,8 +214,8 @@ AddPartitionToList (ULONG DiskNumber,
{
for (j = 0; j < 4; j++)
{
if (LayoutBuffer->PartitionEntry[j].PartitionType != PARTITION_ENTRY_UNUSED ||
LayoutBuffer->PartitionEntry[j].PartitionLength.QuadPart != 0ULL)
if (LayoutBuffer->PartitionEntry[i+j].PartitionType != PARTITION_ENTRY_UNUSED ||
LayoutBuffer->PartitionEntry[i+j].PartitionLength.QuadPart != 0ULL)
{
break;
}