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:
dtang2 2006-11-07 02:36:29 +00:00
parent 1df07b635e
commit 7228815241
1 changed files with 8 additions and 3 deletions

View File

@ -148,6 +148,7 @@ Returns:
BM_FILE_CONTEXT *NewFileContext;
FORM_ID FormId;
BOOLEAN ExitFileExplorer;
EFI_STATUS Status;
NewMenuEntry = NULL;
NewFileContext = NULL;
@ -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;
}