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

@ -2825,6 +2825,7 @@ UiDisplayMenu (
// //
DistanceValue += AdjustDateAndTimePosition (TRUE, &NewPos); DistanceValue += AdjustDateAndTimePosition (TRUE, &NewPos);
ASSERT (MenuOption != NULL);
if (Difference < 0) { if (Difference < 0) {
// //
// We want to goto previous MenuOption, but finally we go down. // We want to goto previous MenuOption, but finally we go down.