From: qwang12 Date: Thu, 18 Sep 2008 09:03:36 +0000 (+0000) Subject: Rollback change done in 5919: "Remove the status code EFI_ALREADY_STARTED to avoid... X-Git-Tag: edk2-stable201903~20298 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=4792a1a65b7d70c196d95f8e4b46f382c530b175 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 --- diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index 9cb5c48456..65ecde2cf4 100644 --- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c +++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c @@ -353,7 +353,7 @@ CoreOpenImageFile ( } } - if (!EFI_ERROR (Status) || Status == EFI_ALREADY_STARTED) { + if (!EFI_ERROR (Status)) { ImageFileHandle->FreeBuffer = TRUE; goto Done; } @@ -369,7 +369,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