mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
7bcd3ff611
commit
d73fc181e7
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user