]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/VariableFormat.h
fixed one bug when calculate the string length.
[mirror_edk2.git] / MdeModulePkg / Include / VariableFormat.h
index a4a37585ca5b35d1897126d986af767cfe13cab8..c660134f0db534cf530389e27b3501879a5a7fa6 100644 (file)
 \r
 #define VARIABLE_STORE_SIGNATURE  EFI_SIGNATURE_32 ('$', 'V', 'S', 'S')\r
 \r
-#define MAX_VARIABLE_SIZE                 1024\r
+#define MAX_VARIABLE_SIZE                 FixedPcdGet32(PcdMaxVariableSize)\r
 \r
 //\r
 // Enlarges the hardware error record maximum variable size to 32K bytes\r
 //\r
-#define MAX_HARDWARE_ERROR_VARIABLE_SIZE  0x8000\r
+#define MAX_HARDWARE_ERROR_VARIABLE_SIZE  FixedPcdGet32(PcdMaxHardwareErrorVariableSize)\r
 \r
 #define VARIABLE_DATA                     0x55AA\r
 \r