ShellPkg: Do not write the UNICODE BOM on ConOut.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jim Dailey <jim_dailey@dell.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Jim_Dailey@Dell.com 2016-02-18 22:47:07 +08:00 committed by Liming Gao
parent 7bcd3ff611
commit d73fc181e7
1 changed files with 4 additions and 2 deletions

View File

@ -160,9 +160,11 @@ FileInterfaceStdOutWrite(
{
if (ShellInfoObject.ShellInitSettings.BitUnion.Bits.NoConsoleOut) {
return (EFI_UNSUPPORTED);
} else {
return (gST->ConOut->OutputString(gST->ConOut, Buffer));
}
if (*((CHAR16 *)Buffer) == gUnicodeFileTag) {
return (gST->ConOut->OutputString(gST->ConOut, (CHAR16 *)Buffer + 1));
}
return (gST->ConOut->OutputString(gST->ConOut, Buffer));
}
/**