diff --git a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c index ca7ecd1751..028f8523cd 100644 --- a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c +++ b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c @@ -1133,7 +1133,7 @@ BcfgDisplayDump( VariableName, Description, DevPathString, - OptionalDataOffset <= BufferSize ? L'N' : L'Y' + OptionalDataOffset >= BufferSize ? L'N' : L'Y' ); if (VerboseOutput) { for (LoopVar2 = OptionalDataOffset; LoopVar2 < BufferSize; LoopVar2++){