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
This commit is contained in:
ydong10 2010-11-01 09:20:56 +00:00
parent 1e51d5954b
commit 1974777e21
1 changed files with 2 additions and 1 deletions

View File

@ -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.