mirror of https://github.com/acidanthera/audk.git
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:
parent
5a1d521dee
commit
63c76537c6
|
@ -687,15 +687,26 @@ OpalDriverPopUpPsidInput (
|
|||
InputLength = 0;
|
||||
while (TRUE) {
|
||||
Mask[InputLength] = L'_';
|
||||
CreatePopUp (
|
||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||
&InputKey,
|
||||
PopUpString,
|
||||
PopUpString2,
|
||||
L"---------------------",
|
||||
Mask,
|
||||
NULL
|
||||
);
|
||||
if (PopUpString2 == NULL) {
|
||||
CreatePopUp (
|
||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||
&InputKey,
|
||||
PopUpString,
|
||||
L"---------------------",
|
||||
Mask,
|
||||
NULL
|
||||
);
|
||||
} else {
|
||||
CreatePopUp (
|
||||
EFI_LIGHTGRAY | EFI_BACKGROUND_BLUE,
|
||||
&InputKey,
|
||||
PopUpString,
|
||||
PopUpString2,
|
||||
L"---------------------",
|
||||
Mask,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Check key.
|
||||
|
|
Loading…
Reference in New Issue