]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellLib/UefiShellLib.c
ShellPkg/UefiShellLib: Avoid reading undefined content before string
[mirror_edk2.git] / ShellPkg / Library / UefiShellLib / UefiShellLib.c
index 55e8a67ac43cebe3ce1e41c62b066d35601098d0..25706e9bc32822f06b6b397205a01f20c082230e 100644 (file)
@@ -2828,7 +2828,7 @@ InternalShellPrintWorker(
     // update the attribute\r
     //\r
     if (ResumeLocation != NULL) {\r
-      if (*(ResumeLocation-1) == L'^') {\r
+      if ((ResumeLocation != mPostReplaceFormat2) && (*(ResumeLocation-1) == L'^')) {\r
         //\r
         // Move cursor back 1 position to overwrite the ^\r
         //\r