mirror of https://github.com/acidanthera/audk.git
ShellPkg: This patch fixes the redirection support for a Shell2 application running in Shell1.
signed-off-by: Richard_Chan@Dell.com reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12951 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a32980dd3c
commit
28d903168c
|
@ -2587,10 +2587,12 @@ InternalPrintTo (
|
||||||
return (gEfiShellProtocol->WriteFile(gEfiShellParametersProtocol->StdOut, &Size, (VOID*)String));
|
return (gEfiShellProtocol->WriteFile(gEfiShellParametersProtocol->StdOut, &Size, (VOID*)String));
|
||||||
}
|
}
|
||||||
if (mEfiShellInterface != NULL) {
|
if (mEfiShellInterface != NULL) {
|
||||||
|
if (mEfiShellInterface->RedirArgc == 0) {
|
||||||
//
|
//
|
||||||
// Divide in half for old shell. Must be string length not size.
|
// 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));
|
return (mEfiShellInterface->StdOut->Write(mEfiShellInterface->StdOut, &Size, (VOID*)String));
|
||||||
}
|
}
|
||||||
ASSERT(FALSE);
|
ASSERT(FALSE);
|
||||||
|
|
Loading…
Reference in New Issue