(VOID **) &BlkIo\r
);\r
//\r
- // skip the fixed block io then the removable block io\r
+ // skip the logical partition\r
//\r
- if (EFI_ERROR (Status) || (BlkIo->Media->RemovableMedia == Removable[RemovableIndex])) {\r
+ if (EFI_ERROR (Status) || BlkIo->Media->LogicalPartition) {\r
+ continue;\r
+ }\r
+\r
+ //\r
+ // firstly fixed block io then the removable block io\r
+ //\r
+ if (BlkIo->Media->RemovableMedia == Removable[RemovableIndex]) {\r
continue;\r
}\r
DevicePath = DevicePathFromHandle (BlockIoHandles[Index]);\r