From 9e2462b8a28b09738a3177e1694867ca114cc185 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Tue, 15 Nov 2016 19:13:33 +0800 Subject: [PATCH] MdeModulePkg/SetupBrowser:Don't support password without interactive flag In current SetupBrowser, the logic related to non-interative password is not correct. How to support it correctly or whether support it is still under investigation. First step remove the incorrect logic. Cc: Liming Gao Cc: Eric Dong Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Liming Gao --- .../Universal/SetupBrowserDxe/Setup.c | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index 7547814575..451fd03707 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c @@ -6108,29 +6108,10 @@ PasswordCheck ( return EFI_UNSUPPORTED; } } else { - if (PasswordString == NULL) { - return EFI_SUCCESS; - } - // - // Check whether has preexisted password. + // If a password doesn't have the CALLBACK flag, browser will not handle it. // - if (PasswordString[0] == 0) { - if (*((CHAR16 *) Question->BufferValue) == 0) { - return EFI_SUCCESS; - } else { - return EFI_NOT_READY; - } - } - - // - // Check whether the input password is same as preexisted password. - // - if (StrnCmp (PasswordString, (CHAR16 *) Question->BufferValue, Question->StorageWidth/sizeof (CHAR16)) == 0) { - return EFI_SUCCESS; - } else { - return EFI_NOT_READY; - } + return EFI_UNSUPPORTED; } //