diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-17 13:34:18 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-17 13:34:18 +0000 |
commit | 2ce854f51511314a537c38c7ec4adfd19f4ccdb7 (patch) | |
tree | b523939d0ffebad0ba35767d2b55baab24bd896b /MdeModulePkg | |
parent | f94b9be34f10c7afd223aac1426a4e1b4defd7ae (diff) | |
download | edk2-2ce854f51511314a537c38c7ec4adfd19f4ccdb7.zip edk2-2ce854f51511314a537c38c7ec4adfd19f4ccdb7.tar.gz edk2-2ce854f51511314a537c38c7ec4adfd19f4ccdb7.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Image/ImageFile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c index 4a8d103..4d09f45 100644 --- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c +++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c @@ -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
|