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,6 +148,7 @@ Returns:
|
||||||
BM_FILE_CONTEXT *NewFileContext;
|
BM_FILE_CONTEXT *NewFileContext;
|
||||||
FORM_ID FormId;
|
FORM_ID FormId;
|
||||||
BOOLEAN ExitFileExplorer;
|
BOOLEAN ExitFileExplorer;
|
||||||
|
EFI_STATUS Status;
|
||||||
|
|
||||||
NewMenuEntry = NULL;
|
NewMenuEntry = NULL;
|
||||||
NewFileContext = NULL;
|
NewFileContext = NULL;
|
||||||
|
@ -180,7 +181,11 @@ Returns:
|
||||||
if (NewFileContext->IsDir ) {
|
if (NewFileContext->IsDir ) {
|
||||||
RemoveEntryList (&NewMenuEntry->Link);
|
RemoveEntryList (&NewMenuEntry->Link);
|
||||||
BOpt_FreeMenu (&DirectoryMenu);
|
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);
|
CreateMenuStringToken (CallbackData, CallbackData->FeHiiHandle, &DirectoryMenu);
|
||||||
BOpt_DestroyMenuEntry (NewMenuEntry);
|
BOpt_DestroyMenuEntry (NewMenuEntry);
|
||||||
|
|
||||||
|
@ -247,7 +252,7 @@ Returns:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exit:
|
||||||
return ExitFileExplorer;
|
return ExitFileExplorer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue