Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Elvin Li <elvin.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15575
6f19259b-4bc3-4df7-8a09-
765794883524
(VOID **) &BlkIo\r
);\r
//\r
(VOID **) &BlkIo\r
);\r
//\r
- // skip the fixed block io then the removable block io\r
+ // skip the logical partition\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
continue;\r
}\r
DevicePath = DevicePathFromHandle (BlockIoHandles[Index]);\r