Fix a UI hang bug when adding Boot Option or Driver Option.

Reproduce steps:
1. plug a NIC card to system
2. boot and select "Boot Maintenance Manager"->"Driver Options"->"Add Driver Option", a "MAC" device path will show up
3. select "MAC" device path and press Enter, and then press ESC
4. select "MAC" device path again, then the UI will hang.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9367 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xdu2 2009-10-26 06:47:50 +00:00
parent 234dfbf857
commit 9ecbc6547b
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@ UpdateFileExplorer (
CallbackData->FeDisplayContext = FileExplorerDisplayDirectory; CallbackData->FeDisplayContext = FileExplorerDisplayDirectory;
if (NewFileContext->IsDir ) {
NewFileContext = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext; NewFileContext = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext;
if (NewFileContext->IsDir ) {
RemoveEntryList (&NewMenuEntry->Link); RemoveEntryList (&NewMenuEntry->Link);
BOpt_FreeMenu (&DirectoryMenu); BOpt_FreeMenu (&DirectoryMenu);
Status = BOpt_FindFiles (CallbackData, NewMenuEntry); Status = BOpt_FindFiles (CallbackData, NewMenuEntry);