SecurityPkg/OpalPassword: Fix PSID revert no hint message.

For no warning message when do the PSID revert action, the
message in the popup dialog is not enough. The error use
of NULL for CreatePopUp function caused this regression.
This change fixed it.

Passed Unit Test:
1. Check PSID revert with/without warning message cases.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
Eric Dong 2018-05-14 15:28:40 +08:00
parent 5a1d521dee
commit 63c76537c6
1 changed files with 20 additions and 9 deletions

View File

@ -687,6 +687,16 @@ OpalDriverPopUpPsidInput (
InputLength = 0;
while (TRUE) {
Mask[InputLength] = L'_';
if (PopUpString2 == NULL) {
CreatePopUp (
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
&InputKey,
PopUpString,
L"---------------------",
Mask,
NULL
);
} else {
CreatePopUp (
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
&InputKey,
@ -696,6 +706,7 @@ OpalDriverPopUpPsidInput (
Mask,
NULL
);
}
//
// Check key.