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

View File

@ -332,7 +332,7 @@ CoreOpenImageFile (
} }
} }
if (!EFI_ERROR (Status) || Status == EFI_ALREADY_STARTED) { if (!EFI_ERROR (Status)) {
ImageFileHandle->FreeBuffer = TRUE; ImageFileHandle->FreeBuffer = TRUE;
goto Done; goto Done;
} }
@ -341,7 +341,7 @@ CoreOpenImageFile (
// //
// Nothing else to try // 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; Status = EFI_NOT_FOUND;
Done: Done:
@ -349,7 +349,7 @@ Done:
// //
// If the file was not accessed, clean up // If the file was not accessed, clean up
// //
if (EFI_ERROR (Status) && (Status != EFI_ALREADY_STARTED)) { if (EFI_ERROR (Status)) {
if (ImageFileHandle->FreeBuffer) { if (ImageFileHandle->FreeBuffer) {
// //
// Free the source buffer if we allocated it // Free the source buffer if we allocated it