Remove the status code EFI_ALREADY_STARTED to avoid confusion since it is not a possible return status from LoadFile() interface.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5919 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-09-17 13:34:18 +00:00
parent f94b9be34f
commit 2ce854f515
1 changed files with 3 additions and 3 deletions

View File

@ -332,7 +332,7 @@ CoreOpenImageFile (
}
}
if (!EFI_ERROR (Status) || Status == EFI_ALREADY_STARTED) {
if (!EFI_ERROR (Status)) {
ImageFileHandle->FreeBuffer = TRUE;
goto Done;
}
@ -341,7 +341,7 @@ CoreOpenImageFile (
//
// Nothing else to try
//
DEBUG ((DEBUG_LOAD|DEBUG_WARN, "CoreOpenImageFile: Device did not support a known load protocol\n"));
DEBUG ((DEBUG_LOAD | DEBUG_WARN, "CoreOpenImageFile: Device did not support a known load protocol\n"));
Status = EFI_NOT_FOUND;
Done:
@ -349,7 +349,7 @@ Done:
//
// If the file was not accessed, clean up
//
if (EFI_ERROR (Status) && (Status != EFI_ALREADY_STARTED)) {
if (EFI_ERROR (Status)) {
if (ImageFileHandle->FreeBuffer) {
//
// Free the source buffer if we allocated it