Correct the patch in r9367.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9371 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xdu2 2009-10-26 08:35:38 +00:00
parent 69533312bf
commit a19ad64bf0
1 changed files with 2 additions and 2 deletions

View File

@ -137,10 +137,10 @@ UpdateFileExplorer (
NewMenuEntry = BOpt_GetMenuEntry (&DirectoryMenu, FileOptionMask); NewMenuEntry = BOpt_GetMenuEntry (&DirectoryMenu, FileOptionMask);
} }
CallbackData->FeDisplayContext = FileExplorerDisplayDirectory; NewFileContext = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext;
if (NewFileContext->IsDir ) { if (NewFileContext->IsDir ) {
NewFileContext = (BM_FILE_CONTEXT *) NewMenuEntry->VariableContext; CallbackData->FeDisplayContext = FileExplorerDisplayDirectory;
RemoveEntryList (&NewMenuEntry->Link); RemoveEntryList (&NewMenuEntry->Link);
BOpt_FreeMenu (&DirectoryMenu); BOpt_FreeMenu (&DirectoryMenu);