mirror of https://github.com/acidanthera/audk.git
Rollback change done in 5919: "Remove the status code EFI_ALREADY_STARTED to avoid confusion since it is not a possible return status from LoadFile() interface." It is accidentally overwritten in last check-in.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5925 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
61ad8a41e7
commit
4792a1a65b
|
@ -353,7 +353,7 @@ CoreOpenImageFile (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EFI_ERROR (Status) || Status == EFI_ALREADY_STARTED) {
|
if (!EFI_ERROR (Status)) {
|
||||||
ImageFileHandle->FreeBuffer = TRUE;
|
ImageFileHandle->FreeBuffer = TRUE;
|
||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
@ -369,7 +369,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
|
||||||
|
|
Loading…
Reference in New Issue