]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c
ShellPkg: BcfgDisplayDump(): fix reporting of OptionalData
[mirror_edk2.git] / ShellPkg / Library / UefiShellBcfgCommandLib / UefiShellBcfgCommandLib.c
index ca7ecd17519f85e155f7017c3f41ed004cf4f8d6..028f8523cd1d4db3e64628e16a86475c753b282e 100644 (file)
@@ -1133,7 +1133,7 @@ BcfgDisplayDump(
       VariableName,\r
       Description,\r
       DevPathString,\r
-      OptionalDataOffset <= BufferSize ? L'N' : L'Y'\r
+      OptionalDataOffset >= BufferSize ? L'N' : L'Y'\r
       );\r
     if (VerboseOutput) {\r
       for (LoopVar2 = OptionalDataOffset; LoopVar2 < BufferSize; LoopVar2++){\r