]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.c
Code scrub DxeIpl, Runtime, DevicePath, FvbServicesLib, DiskIo, Partition, English...
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / UnicodeCollation / EnglishDxe / UnicodeCollationEng.c
index e8c5bd953c9c3d1e9d4d22bea612322132d5415f..f5f87707d33bdc87710f2fdd283d959bd0bcc1dd 100644 (file)
@@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "UnicodeCollationEng.h"\r
 \r
-CHAR8 mEngUpperMap[0x100];\r
-CHAR8 mEngLowerMap[0x100];\r
-CHAR8 mEngInfoMap[0x100];\r
+CHAR8 mEngUpperMap[MAP_TABLE_SIZE];\r
+CHAR8 mEngLowerMap[MAP_TABLE_SIZE];\r
+CHAR8 mEngInfoMap[MAP_TABLE_SIZE];\r
 \r
 CHAR8 mOtherChars[] = {\r
   '0',\r
@@ -106,7 +106,7 @@ InitializeUnicodeCollationEng (
   //\r
   // Initialize mapping tables for the supported languages\r
   //\r
-  for (Index = 0; Index < 0x100; Index++) {\r
+  for (Index = 0; Index < MAP_TABLE_SIZE; Index++) {\r
     mEngUpperMap[Index] = (CHAR8) Index;\r
     mEngLowerMap[Index] = (CHAR8) Index;\r
     mEngInfoMap[Index]  = 0;\r
@@ -453,9 +453,9 @@ EngStrToFat (
     if (*String != '.' && *String != ' ') {\r
       //\r
       // If this is a valid fat char, move it.\r
-      // Otherwise, move a '_' and flag the fact that the name needs an Lfn\r
+      // Otherwise, move a '_' and flag the fact that the name needs a long file name.\r
       //\r
-      if (*String < 0x100 && ((mEngInfoMap[*String] & CHAR_FAT_VALID) != 0)) {\r
+      if (*String < MAP_TABLE_SIZE && ((mEngInfoMap[*String] & CHAR_FAT_VALID) != 0)) {\r
         *Fat = mEngUpperMap[*String];\r
       } else {\r
         *Fat              = '_';\r