]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a UI hang bug when adding Boot Option or Driver Option.
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 26 Oct 2009 06:47:50 +0000 (06:47 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 26 Oct 2009 06:47:50 +0000 (06:47 +0000)
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

IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/FileExplorer.c

index 2eaf9b2d59f4b5510a6ce4d908cf9a4d78117658..98dc54c9399a61d4962a6c956d46e8f1268fda79 100644 (file)
@@ -139,9 +139,9 @@ UpdateFileExplorer (
 \r
     CallbackData->FeDisplayContext  = FileExplorerDisplayDirectory;\r
 \r
-    NewFileContext                  = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext;\r
-\r
     if (NewFileContext->IsDir ) {\r
+      NewFileContext = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext;\r
+\r
       RemoveEntryList (&NewMenuEntry->Link);\r
       BOpt_FreeMenu (&DirectoryMenu);\r
       Status = BOpt_FindFiles (CallbackData, NewMenuEntry);\r