summaryrefslogtreecommitdiff
path: root/edk2/ShellPkg/Library/UefiShellLib
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-26 21:00:39 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2012-03-26 21:00:39 +0000
commit6f7c0b1859d8c0d58ac86d80853c49f1cc02f42e (patch)
treed6b1a95e0768f53a3c72723bf8eb7d718aedd7e1 /edk2/ShellPkg/Library/UefiShellLib
parentbf1e48663443d1d6ebbd25ae7f51271df9c28212 (diff)
correct removal of commit 12951.
submitted-by: jaben.carsey@intel.com git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@13141 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/ShellPkg/Library/UefiShellLib')
-rw-r--r--edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c b/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
index 85a5d44f0..1929349b2 100644
--- a/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
+++ b/edk2/ShellPkg/Library/UefiShellLib/UefiShellLib.c
@@ -2606,10 +2606,12 @@ InternalPrintTo (
return (gEfiShellProtocol->WriteFile(gEfiShellParametersProtocol->StdOut, &Size, (VOID*)String));
}
if (mEfiShellInterface != NULL) {
+ if (mEfiShellInterface->RedirArgc == 0) {
//
// Divide in half for old shell. Must be string length not size.
- //
- Size /= 2;
+ //
+ Size /=2; // Divide in half only when no redirection.
+ }
return (mEfiShellInterface->StdOut->Write(mEfiShellInterface->StdOut, &Size, (VOID*)String));
}
ASSERT(FALSE);