]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c
GetCurrentLanguage() in IFR Support Library treats language variable incorrectly...
[mirror_edk2.git] / EdkModulePkg / Library / EdkIfrSupportLib / IfrCommon.c
index f4d9d4f39e8724c27b159e6b7bb400e740b84015..cff559cf4d41a0df25315cde7ced199be287ad70 100644 (file)
@@ -71,7 +71,7 @@ Returns:
     AsciiStrCpy (Language, "eng");\r
   }\r
 \r
-  for (Index = 0; Language[Index] != 0; Index++) {\r
+  for (Index = 0; Index < 3; Index++) {\r
     //\r
     // Bitwise AND ascii value with 0xDF yields an uppercase value.\r
     // Sign extend into a unicode value\r