mirror of https://github.com/acidanthera/audk.git
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:
parent
1e51d5954b
commit
1974777e21
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue