summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
diff options
context:
space:
mode:
authorGao Qihang <gaoqihang@loongson.cn>2025-07-15 11:36:30 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-08-22 13:32:40 +0300
commit296c2e7edb9276b1187539b712b901328a4a4647 (patch)
treedd7c1786fcbe75fecfa644238d01a7f5aae0653c /MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
parenteb3354a49953e1ff35cfcb986e8a959c4c8f1aeb (diff)
downloadedk2-296c2e7edb9276b1187539b712b901328a4a4647.tar.xz
MdeModulePkg: Simplify PrintInternal function to fit wide character
According to UEFI Spec, only Bit0...6 is valid in mode attribute, other bits are undefined and must be 0. So attribute with EFI_WIDE_ATTRIBUTE is unacceptable as EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute() input parameter. In current PrintInternal function, wide character removed WIDE_CHAR, and is used as EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString() input parameter. So, wide character is mistakenly be treated as narrow character. Because EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString() can handle unicode string with NARROW_CHAR and WIDE_CHAR, we can directly invoke OutputString() with whole unicode string in PrintInternal function instead of separated wide/narrow string. And then, the logic of computing unicode string width is also simplified. Signed-off-by: Gao Qihang <gaoqihang@loongson.cn>
Diffstat (limited to 'MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf')
0 files changed, 0 insertions, 0 deletions