#include <Library/BaseLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/BaseMemoryLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeLib.h>\r
#include <Library/DebugLib.h>\r
VOID *Scratch; // Buffer used during reclaim\r
UINTN CommonVariableTotalSize;\r
UINTN HwErrVariableTotalSize;\r
- CHAR8 PlatformLangCodes[256]; //Pre-allocate 256 bytes space to accommodate the PlatformlangCodes.\r
- CHAR8 LangCodes[256]; //Pre-allocate 256 bytes space to accommodate the langCodes.\r
- CHAR8 PlatformLang[8]; //Pre-allocate 8 bytes space to accommodate the Platformlang variable.\r
- CHAR8 Lang[4]; //Pre-allocate 4 bytes space to accommodate the lang variable.\r
+ CHAR8 *PlatformLangCodes;\r
+ CHAR8 *LangCodes;\r
+ CHAR8 *PlatformLang;\r
+ CHAR8 Lang[ISO_639_2_ENTRY_SIZE + 1];\r
} VARIABLE_GLOBAL;\r
\r
//\r