Refine some code to make the code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10863 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -805,7 +805,7 @@ ParseOpCodes (
|
||||
CurrentStatement->Minimum = ((EFI_IFR_NUMERIC *) OpCodeData)->data.u8.MinValue;
|
||||
CurrentStatement->Maximum = ((EFI_IFR_NUMERIC *) OpCodeData)->data.u8.MaxValue;
|
||||
CurrentStatement->Step = ((EFI_IFR_NUMERIC *) OpCodeData)->data.u8.Step;
|
||||
CurrentStatement->StorageWidth = sizeof (UINT8);
|
||||
CurrentStatement->StorageWidth = (UINT16) sizeof (UINT8);
|
||||
Value->Type = EFI_IFR_TYPE_NUM_SIZE_8;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user