LogicalPartition* PrimaryPartition::LogicalPartitionAt(int32 index) const { LogicalPartition* partition = NULL; if (index >= 0 && index < fLogicalPartitionCount) { for (partition = fHead; index > 0; index--) partition = partition->Next(); } return partition; }