From: Eric Dong Date: Mon, 20 Apr 2015 04:26:39 +0000 (+0000) Subject: Update the logic for action opcode, also support user input a empty string for Questi... X-Git-Tag: edk2-stable201903~10025 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=40ad4b1a6bd2d17b6bd3f0a14f65392a7b7249a1 Update the logic for action opcode, also support user input a empty string for QuestionConfig part. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17189 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c index 4b00b54ce8..aa1fedc7b4 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Presentation.c @@ -1426,6 +1426,8 @@ ProcessQuestionConfig ( ConfigResp = GetToken (Question->QuestionConfig, Selection->FormSet->HiiHandle); if (ConfigResp == NULL) { return EFI_NOT_FOUND; + } else if (ConfigResp[0] == L'\0') { + return EFI_SUCCESS; } //