UINTN LoopVar;\r
UINTN LoopVar2;\r
CHAR16 *DevPathString;\r
- VOID *DevPath;\r
+ VOID *FilePathList;\r
UINTN Errors;\r
EFI_LOAD_OPTION *LoadOption;\r
CHAR16 *Description;\r
for (LoopVar = 0 ; LoopVar < OrderCount ; LoopVar++) {\r
Buffer = NULL;\r
BufferSize = 0;\r
- DevPath = NULL;\r
DevPathString = NULL;\r
\r
UnicodeSPrint(VariableName, sizeof(VariableName), L"%s%04x", Op, CurrentOrder[LoopVar]);\r
DescriptionSize = StrSize (Description);\r
\r
if (LoadOption->FilePathListLength != 0) {\r
- DevPath = AllocateZeroPool(LoadOption->FilePathListLength);\r
- if (DevPath != NULL) {\r
- CopyMem(DevPath, Buffer+6+DescriptionSize, LoadOption->FilePathListLength);\r
- DevPathString = ConvertDevicePathToText(DevPath, TRUE, FALSE);\r
- }\r
+ FilePathList = (UINT8 *)Description + DescriptionSize;\r
+ DevPathString = ConvertDevicePathToText(FilePathList, TRUE, FALSE);\r
}\r
ShellPrintHiiEx(\r
-1,\r
if (Buffer != NULL) {\r
FreePool(Buffer);\r
}\r
- if (DevPath != NULL) {\r
- FreePool(DevPath);\r
- }\r
if (DevPathString != NULL) {\r
FreePool(DevPathString);\r
}\r