diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-18 09:03:36 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-18 09:03:36 +0000 |
commit | 4792a1a65b7d70c196d95f8e4b46f382c530b175 (patch) | |
tree | 77999c489acc80ce53d2112f13b3c9f8fa1bff8a | |
parent | 61ad8a41e778a5ba86616b68035f1eec1f753cbe (diff) | |
download | edk2-4792a1a65b7d70c196d95f8e4b46f382c530b175.zip edk2-4792a1a65b7d70c196d95f8e4b46f382c530b175.tar.gz edk2-4792a1a65b7d70c196d95f8e4b46f382c530b175.tar.bz2 |
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
-rw-r--r-- | MdeModulePkg/Core/Dxe/Image/ImageFile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index 9cb5c48..65ecde2 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
|