diff --git a/MdeModulePkg/Application/CapsuleApp/AppSupport.c b/MdeModulePkg/Application/CapsuleApp/AppSupport.c index fc27343736..a727dbdc66 100644 --- a/MdeModulePkg/Application/CapsuleApp/AppSupport.c +++ b/MdeModulePkg/Application/CapsuleApp/AppSupport.c @@ -127,7 +127,7 @@ ReadFileToBuffer ( // Get the file size. // Status = ShellProtocol->GetFileSize (Handle, &FileSize); - if (EFI_ERROR (Status)) { + if (EFI_ERROR (Status)) { ShellProtocol->CloseFile (Handle); return Status; }