summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-04 05:56:36 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-04 05:56:36 +0000
commitde42c0275666bbf19c93a0dc474a909d691ce7ef (patch)
tree8efda4afad8abcf67fc5039ffd3e55ae91fffc1f
parenta1373617d6bba05ab96b5e0c272fbe1f24aee237 (diff)
downloadedk2-platforms-de42c0275666bbf19c93a0dc474a909d691ce7ef.tar.xz
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
-rw-r--r--DuetPkg/FSVariable/FSVariable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DuetPkg/FSVariable/FSVariable.c b/DuetPkg/FSVariable/FSVariable.c
index c41467c6f8..f3d5203279 100644
--- a/DuetPkg/FSVariable/FSVariable.c
+++ b/DuetPkg/FSVariable/FSVariable.c
@@ -809,7 +809,7 @@ AutoUpdateLangVariable(
FindVariable(L"PlatformLang", &gEfiGlobalVariableGuid, &Variable);
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));
ASSERT_EFI_ERROR(Status);