]> git.proxmox.com Git - mirror_edk2.git/commitdiff
correct removal of commit 12951.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 26 Mar 2012 21:00:39 +0000 (21:00 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 26 Mar 2012 21:00:39 +0000 (21:00 +0000)
submitted-by: jaben.carsey@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13141 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLib/UefiShellLib.c

index 85a5d44f081495b553c64206f7fd31ab65d9948b..1929349b2038aa2a7f4f197eb532ef442d7459b7 100644 (file)
@@ -2606,10 +2606,12 @@ InternalPrintTo (
     return (gEfiShellProtocol->WriteFile(gEfiShellParametersProtocol->StdOut, &Size, (VOID*)String));\r
   }\r
   if (mEfiShellInterface          != NULL) {\r
+    if (mEfiShellInterface->RedirArgc == 0) { \r
     //\r
     // Divide in half for old shell.  Must be string length not size.\r
-    //\r
-    Size /= 2;\r
+      // \r
+      Size /=2;  // Divide in half only when no redirection.\r
+    }\r
     return (mEfiShellInterface->StdOut->Write(mEfiShellInterface->StdOut,          &Size, (VOID*)String));\r
   }\r
   ASSERT(FALSE);\r