mirror of https://github.com/acidanthera/audk.git
MdeModulePkg:Fix bug that get the password width info incorrectly
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19336 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
621a618a8c
commit
4858527b54
|
@ -1583,6 +1583,8 @@ GetWidth (
|
|||
return (UINT16) sizeof (BOOLEAN);
|
||||
|
||||
case EFI_IFR_PASSWORD_OP:
|
||||
return (UINT16)((UINTN) ((EFI_IFR_PASSWORD *) OpCodeData)->MaxSize * sizeof (CHAR16));
|
||||
|
||||
case EFI_IFR_STRING_OP:
|
||||
return (UINT16)((UINTN) ((EFI_IFR_STRING *) OpCodeData)->MaxSize * sizeof (CHAR16));
|
||||
|
||||
|
|
Loading…
Reference in New Issue