]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/Crc32SectionExtract.c
Clean up the following module msa files, they are edkmodule package ftwlit, Crc32Sect...
[mirror_edk2.git] / EdkModulePkg / Universal / FirmwareVolume / GuidedSectionExtraction / Crc32SectionExtract / Dxe / Crc32SectionExtract.c
index 7e196d6453cb8beb3d8326b69d33e5a660bc75df..de9ba8372f38c37149a48d9dc797b33e8010ec02 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -18,8 +18,7 @@ Abstract:
   Implements GUIDed section extraction protocol interface with \r
   a specific GUID: CRC32.\r
 \r
   Implements GUIDed section extraction protocol interface with \r
   a specific GUID: CRC32.\r
 \r
-  Please refer to the Tiano File Image Format Specification, \r
-  FV spec 0.3.6\r
+  Please refer to the Framewokr Firmware Volume Specification 0.9.\r
 \r
 --*/\r
 \r
 \r
 --*/\r
 \r
@@ -68,7 +67,7 @@ Returns:
             );\r
   if (EFI_ERROR (Status)) {\r
     if (Crc32GuidedSep != NULL) {\r
             );\r
   if (EFI_ERROR (Status)) {\r
     if (Crc32GuidedSep != NULL) {\r
-      gBS->FreePool (Crc32GuidedSep);\r
+      FreePool (Crc32GuidedSep);\r
     }\r
 \r
     return Status;\r
     }\r
 \r
     return Status;\r
@@ -84,7 +83,7 @@ Returns:
                   Crc32GuidedSep\r
                   );\r
   if (EFI_ERROR (Status)) {\r
                   Crc32GuidedSep\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Crc32GuidedSep);\r
+    FreePool (Crc32GuidedSep);\r
     return EFI_LOAD_ERROR;\r
   }\r
 \r
     return EFI_LOAD_ERROR;\r
   }\r
 \r
@@ -199,8 +198,8 @@ Crc32ExtractSection (
   Image = (UINT8 *) InputSection + (UINT32) (GuidedSectionHeader->DataOffset);\r
   *OutputSize = GetSectionLength ((EFI_COMMON_SECTION_HEADER *) InputSection) - (UINT32) GuidedSectionHeader->DataOffset;\r
 \r
   Image = (UINT8 *) InputSection + (UINT32) (GuidedSectionHeader->DataOffset);\r
   *OutputSize = GetSectionLength ((EFI_COMMON_SECTION_HEADER *) InputSection) - (UINT32) GuidedSectionHeader->DataOffset;\r
 \r
-  Status = gBS->AllocatePool (EfiBootServicesData, *OutputSize, OutputBuffer);\r
-  if (EFI_ERROR (Status)) {\r
+  *OutputBuffer = AllocatePool (*OutputSize);\r
+  if (*OutputBuffer == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
   //\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
   //\r