From 40b96d407e542b77838b2e2c79cf1d9a56032322 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 25 Dec 2008 09:30:36 +0000 Subject: [PATCH] Change MAX_CHOICE_NUM to max UINT8 value git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7122 6f19259b-4bc3-4df7-8a09-765794883524 --- .../PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c | 2 +- .../PlatformDriverOverride/PlatOverMngr/PlatOverMngr.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c index a55e2ea0cb..ebd9d18efb 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c @@ -975,7 +975,7 @@ UpdatePrioritySelectPage ( EFI_IFR_FLAG_RESET_REQUIRED, 0, EFI_IFR_NUMERIC_SIZE_1, - MAX_CHOICE_NUM, + (UINT8) MAX_CHOICE_NUM, IfrOptionList, SelectedDriverImageNum, &UpdateData diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.h b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.h index a4ebeff8a4..12bbf6a3b3 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.h +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.h @@ -24,9 +24,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // The max number of the supported driver list. -// // -#define MAX_CHOICE_NUM 0x0100 +#define MAX_CHOICE_NUM 0x00ff #define UPDATE_DATA_SIZE 0x1000 #define FORM_ID_DEVICE 0x1100