X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellBcfgCommandLib%2FUefiShellBcfgCommandLib.c;h=b407608d315405790484aef380f9a5aa9ce74914;hp=6a078d81cc31ae0547f8e790d5aad0f008645a77;hb=aed8c66dac8731e8175cdeaff78e24c1ff728b90;hpb=d5b8efb6dc790814780415cf76adbd7f74cc1725 diff --git a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c index 6a078d81cc..b407608d31 100644 --- a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c +++ b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c @@ -1111,7 +1111,7 @@ BcfgDisplayDump( } LoadOption = (EFI_LOAD_OPTION *)Buffer; - Description = (CHAR16 *)(&LoadOption->FilePathListLength + 1); + Description = (CHAR16*)(Buffer + sizeof (EFI_LOAD_OPTION)); DescriptionSize = StrSize (Description); if (LoadOption->FilePathListLength != 0) {