loader/gpt.c
VOID AddPartitionTable(REFIT_VOLUME *Volume) {
   GPT_DATA    *GptData = NULL, *GptList;
   EFI_STATUS  Status;
   UINTN       NumTables = 1;

   Status = ReadGptData(Volume, &GptData);
   if (Status == EFI_SUCCESS) {
      if (gPartitions == NULL) {
         gPartitions = GptData;
      } else {
         GptList = gPartitions;
         while (GptList->NextEntry != NULL) {
            GptList = GptList->NextEntry;
            NumTables++;
         } // while
         GptList->NextEntry = GptData;
         NumTables++;
      } // if/else
   } else if (GptData != NULL) {
      ClearGptData(GptData);
      NumTables = 0;
   } // if/else
}
// If Volume points to a whole disk with a GPT, add it to the gPartitions
// linked list of GPTs.
If Volume points to a whole disk with a GPT, add it to the gPartitions
linked list of GPTs.
If Volume points to a whole disk with a GPT add it to the gPartitions linked list of GPTs .
VOID AddPartitionTable(REFIT_VOLUME *Volume) {
   GPT_DATA    *GptData = NULL, *GptList;
   EFI_STATUS  Status;
   UINTN       NumTables = 1;
   Status = ReadGptData(Volume, &GptData);
   if (Status == EFI_SUCCESS) {
      if (gPartitions == NULL) {
         gPartitions = GptData;
      } else {
         GptList = gPartitions;
         while (GptList->NextEntry != NULL) {
            GptList = GptList->NextEntry;
            NumTables++;
         } 
         GptList->NextEntry = GptData;
         NumTables++;
      } 
   } else if (GptData != NULL) {
      ClearGptData(GptData);
      NumTables = 0;
   } 
}
VOID AddPartitionTable ( REFIT_VOLUME * Volume ) { GPT_DATA * GptData = NULL , * GptList ; EFI_STATUS Status ; UINTN NumTables = 1 ; Status = ReadGptData ( Volume , & GptData ) ; if ( Status == EFI_SUCCESS ) { if ( gPartitions == NULL ) { gPartitions = GptData ; } else { GptList = gPartitions ; while ( GptList -> NextEntry != NULL ) { GptList = GptList -> NextEntry ; NumTables ++ ; } GptList -> NextEntry = GptData ; NumTables ++ ; } } else if ( GptData != NULL ) { ClearGptData ( GptData ) ; NumTables = 0 ; } }
If Volume points to a whole disk with a GPT, add it to the gPartitions
linked list of GPTs.
If Volume points to a whole disk with a GPT add it to the gPartitions linked list of GPTs .
// while // if/else // if/else