]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/FormGuid.h
Fix some issues reported by source static analysis tools.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / BootMaint / FormGuid.h
index e67ae2c6287241b4f1819757de9de3194898afb8..f177e75f5e7e7040764d8b5a9c5fdc2935c9ed7e 100644 (file)
@@ -86,6 +86,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // End Label\r
 //\r
 #define LABEL_END   0xffff\r
+#define MAX_MENU_NUMBER 100\r
 \r
 ///\r
 /// This is the structure that will be used to store the\r
@@ -124,8 +125,8 @@ typedef struct {
   //\r
   // Driver Option Add Handle page storage\r
   //\r
-  UINT16  DriverAddHandleDesc[100];\r
-  UINT16  DriverAddHandleOptionalData[100];\r
+  UINT16  DriverAddHandleDesc[MAX_MENU_NUMBER];\r
+  UINT16  DriverAddHandleOptionalData[MAX_MENU_NUMBER];\r
   UINT8   DriverAddActive;\r
   UINT8   DriverAddForceReconnect;\r
 \r
@@ -142,19 +143,19 @@ typedef struct {
   //\r
   // At most 100 input/output/errorout device for console storage\r
   //\r
-  UINT8   ConsoleCheck[100];\r
+  UINT8   ConsoleCheck[MAX_MENU_NUMBER];\r
 \r
   //\r
   // Boot or Driver Option Order storage\r
   //\r
-  UINT8   OptionOrder[100];\r
-  UINT8   DriverOptionToBeDeleted[100];\r
+  UINT8   OptionOrder[MAX_MENU_NUMBER];\r
+  UINT8   DriverOptionToBeDeleted[MAX_MENU_NUMBER];\r
 \r
   //\r
   // Boot Option Delete storage\r
   //\r
-  UINT8   BootOptionDel[100];\r
-  UINT8   DriverOptionDel[100];\r
+  UINT8   BootOptionDel[MAX_MENU_NUMBER];\r
+  UINT8   DriverOptionDel[MAX_MENU_NUMBER];\r
 \r
   //\r
   // This is the Terminal Attributes value storage\r
@@ -168,11 +169,11 @@ typedef struct {
   //\r
   // Legacy Device Order Selection Storage\r
   //\r
-  UINT8   LegacyFD[100];\r
-  UINT8   LegacyHD[100];\r
-  UINT8   LegacyCD[100];\r
-  UINT8   LegacyNET[100];\r
-  UINT8   LegacyBEV[100];\r
+  UINT8   LegacyFD[MAX_MENU_NUMBER];\r
+  UINT8   LegacyHD[MAX_MENU_NUMBER];\r
+  UINT8   LegacyCD[MAX_MENU_NUMBER];\r
+  UINT8   LegacyNET[MAX_MENU_NUMBER];\r
+  UINT8   LegacyBEV[MAX_MENU_NUMBER];\r
 \r
   //\r
   // We use DisableMap array to record the enable/disable state of each boot device\r