Decode a hard disk partitioned with the GPT scheme in the UEFI 2.0\r
specification.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
// Verify that the Protective MBR is valid\r
//\r
- if (ProtectiveMbr->Partition[0].BootIndicator != 0x00 ||\r
- ProtectiveMbr->Partition[0].OSIndicator != PMBR_GPT_PARTITION ||\r
- UNPACK_UINT32 (ProtectiveMbr->Partition[0].StartingLBA) != 1\r
- ) {\r
+ for (Index = 0; Index < MAX_MBR_PARTITIONS; Index++) {\r
+ if (ProtectiveMbr->Partition[Index].BootIndicator == 0x00 &&\r
+ ProtectiveMbr->Partition[Index].OSIndicator == PMBR_GPT_PARTITION &&\r
+ UNPACK_UINT32 (ProtectiveMbr->Partition[Index].StartingLBA) == 1\r
+ ) {\r
+ break;\r
+ }\r
+ }\r
+ if (Index == MAX_MBR_PARTITIONS) {\r
goto Done;\r
}\r
\r