mirror of https://github.com/acidanthera/audk.git
Bug fix for "Unplug U Disk during exploer using File Explorer cause tiano halt"
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1906 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1df07b635e
commit
7228815241
|
@ -148,7 +148,8 @@ Returns:
|
|||
BM_FILE_CONTEXT *NewFileContext;
|
||||
FORM_ID FormId;
|
||||
BOOLEAN ExitFileExplorer;
|
||||
|
||||
EFI_STATUS Status;
|
||||
|
||||
NewMenuEntry = NULL;
|
||||
NewFileContext = NULL;
|
||||
ExitFileExplorer = FALSE;
|
||||
|
@ -180,7 +181,11 @@ Returns:
|
|||
if (NewFileContext->IsDir ) {
|
||||
RemoveEntryList (&NewMenuEntry->Link);
|
||||
BOpt_FreeMenu (&DirectoryMenu);
|
||||
BOpt_FindFiles (CallbackData, NewMenuEntry);
|
||||
Status = BOpt_FindFiles (CallbackData, NewMenuEntry);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ExitFileExplorer = TRUE;
|
||||
goto exit;
|
||||
}
|
||||
CreateMenuStringToken (CallbackData, CallbackData->FeHiiHandle, &DirectoryMenu);
|
||||
BOpt_DestroyMenuEntry (NewMenuEntry);
|
||||
|
||||
|
@ -247,7 +252,7 @@ Returns:
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
return ExitFileExplorer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue