]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/FormGuid.h
IntelFrameworkModulePkg BootMaint: Use safe string functions
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / BootMaint / FormGuid.h
index f2e1866845b8741bfcc2f6f1e6b03b992210033a..bf99999760076f2097ac32d761ba1ba102218b04 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Formset guids, form id and VarStore data structure for Boot Maintenance Manager.\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -219,14 +219,20 @@ typedef struct {
 #define KEY_VALUE_SAVE_AND_EXIT_DRIVER         0x1002\r
 #define KEY_VALUE_NO_SAVE_AND_EXIT_DRIVER      0x1003\r
 \r
+//\r
+// Description data and optional data size\r
+//\r
+#define DESCRIPTION_DATA_SIZE                  75\r
+#define OPTIONAL_DATA_SIZE                     127\r
+\r
 ///\r
 /// This is the data structure used by File Explorer formset\r
 ///\r
 typedef struct {\r
-  UINT16  BootDescriptionData[75];\r
-  UINT16  BootOptionalData[127];\r
-  UINT16  DriverDescriptionData[75];\r
-  UINT16  DriverOptionalData[127];\r
+  UINT16  BootDescriptionData[DESCRIPTION_DATA_SIZE];\r
+  UINT16  BootOptionalData[OPTIONAL_DATA_SIZE];\r
+  UINT16  DriverDescriptionData[DESCRIPTION_DATA_SIZE];\r
+  UINT16  DriverOptionalData[OPTIONAL_DATA_SIZE];\r
   BOOLEAN BootOptionChanged;\r
   BOOLEAN DriverOptionChanged;\r
   UINT8   Active;\r