From 1974777e210c24258e7c8c771fcf94a434f22841 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Mon, 1 Nov 2010 09:20:56 +0000 Subject: Refine code to make code run more safely. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10993 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index 0e74c5800d..3e4bb0a0d6 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -2824,7 +2824,8 @@ UiDisplayMenu ( // checking can be done. // DistanceValue += AdjustDateAndTimePosition (TRUE, &NewPos); - + + ASSERT (MenuOption != NULL); if (Difference < 0) { // // We want to goto previous MenuOption, but finally we go down. -- cgit v1.2.3