diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-01 09:20:56 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-11-01 09:20:56 +0000 |
commit | 1974777e210c24258e7c8c771fcf94a434f22841 (patch) | |
tree | 9a95a7d4440bfaece042933ded22579ec25c5f60 | |
parent | 1e51d5954b7748361cb0dbe0f5b2a62d6394439e (diff) | |
download | edk2-platforms-1974777e210c24258e7c8c771fcf94a434f22841.tar.xz |
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
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/Ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
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.
|