From b5a906f477435ad750317d51cfdcaf5a0ae94b6d Mon Sep 17 00:00:00 2001 From: xdu2 Date: Thu, 12 Nov 2009 04:58:19 +0000 Subject: 1. Update SetupBrowser to pass correct buffer value for OrderedList Callback 2. Fix UI hang issue in SuppressIf Form support checkin 3. Update DriverSample to demo storage width of OrderedList could be defined to types other than UINT8. (Note: this requires BaseTools >= r9397 for updated VfrCompiler.exe) git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9418 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Ui.c') diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index db2bd27df3..5deb3019bc 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -2557,11 +2557,11 @@ UiDisplayMenu ( Selection->QuestionId = Statement->RefQuestionId; } else if (Statement->RefFormId != 0) { // - // Check Ref From is suppressed. + // Check whether target From is suppressed. // RefForm = IdToForm (Selection->FormSet, Statement->RefFormId); - if (RefForm->SuppressExpression != NULL) { + if ((RefForm != NULL) && (RefForm->SuppressExpression != NULL)) { Status = EvaluateExpression (Selection->FormSet, RefForm, RefForm->SuppressExpression); if (EFI_ERROR (Status)) { return Status; -- cgit v1.2.3