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:
Dandan Bi 2015-12-18 02:14:27 +00:00 committed by dandanbi
parent 621a618a8c
commit 4858527b54
1 changed files with 2 additions and 0 deletions

View File

@ -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));