mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
Fix a bug that L"PlatformLang" must be a null-terminated ASCII string according to UEFI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8233 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a1373617d6
commit
de42c02756
@ -809,7 +809,7 @@ AutoUpdateLangVariable(
|
|||||||
FindVariable(L"PlatformLang", &gEfiGlobalVariableGuid, &Variable);
|
FindVariable(L"PlatformLang", &gEfiGlobalVariableGuid, &Variable);
|
||||||
|
|
||||||
Status = UpdateVariable(L"PlatformLang", &gEfiGlobalVariableGuid,
|
Status = UpdateVariable(L"PlatformLang", &gEfiGlobalVariableGuid,
|
||||||
BestPlatformLang, AsciiStrLen (BestPlatformLang), Attributes, &Variable);
|
BestPlatformLang, AsciiStrSize (BestPlatformLang), Attributes, &Variable);
|
||||||
|
|
||||||
DEBUG((EFI_D_INFO, "Variable Driver Auto Update Lang, Lang:%a, PlatformLang:%a\n", BestLang, BestPlatformLang));
|
DEBUG((EFI_D_INFO, "Variable Driver Auto Update Lang, Lang:%a, PlatformLang:%a\n", BestLang, BestPlatformLang));
|
||||||
ASSERT_EFI_ERROR(Status);
|
ASSERT_EFI_ERROR(Status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user