summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Dxe/Image/ImageFile.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Image/ImageFile.c')
-rw-r--r--MdeModulePkg/Core/Dxe/Image/ImageFile.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/MdeModulePkg/Core/Dxe/Image/ImageFile.c b/MdeModulePkg/Core/Dxe/Image/ImageFile.c
index e78b88d608..c9fc6d632d 100644
--- a/MdeModulePkg/Core/Dxe/Image/ImageFile.c
+++ b/MdeModulePkg/Core/Dxe/Image/ImageFile.c
@@ -79,7 +79,7 @@ CoreOpenImageFile (
if (SourceBuffer != NULL) {
ImageFileHandle->Source = SourceBuffer;
ImageFileHandle->SourceSize = SourceSize;
- *DeviceHandle = NULL;
+ *DeviceHandle = NULL;
CoreLocateDevicePath (&gEfiDevicePathProtocolGuid, FilePath, DeviceHandle);
if (SourceSize > 0) {
Status = EFI_SUCCESS;
@@ -252,7 +252,7 @@ CoreOpenImageFile (
//
// Read the file into the buffer we allocated
//
- ImageFileHandle->SourceSize = (UINTN)FileInfo->FileSize;
+ ImageFileHandle->SourceSize = (UINTN) FileInfo->FileSize;
ImageFileHandle->FreeBuffer = TRUE;
Status = FileHandle->Read (FileHandle, &ImageFileHandle->SourceSize, ImageFileHandle->Source);
@@ -277,11 +277,11 @@ CoreOpenImageFile (
TempFilePath = *FilePath;
Status = CoreDevicePathToInterface (
- &gEfiLoadFileProtocolGuid,
- &TempFilePath,
- (VOID*)&LoadFile,
- DeviceHandle
- );
+ &gEfiLoadFileProtocolGuid,
+ &TempFilePath,
+ (VOID*) &LoadFile,
+ DeviceHandle
+ );
if (!EFI_ERROR (Status)) {
//
// Call LoadFile with the correct buffer size
@@ -333,7 +333,6 @@ Done:
-
/**
Read image file (specified by UserHandle) into user specified buffer with specified offset
and length.
@@ -449,7 +448,6 @@ CoreGrowBuffer (
//
// If the status code is "buffer too small", resize the buffer
//
-
if (*Status == EFI_BUFFER_TOO_SMALL) {
if (*Buffer != NULL) {
CoreFreePool (*Buffer);