X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FGenCrc32%2FGenCrc32.c;h=e1e11c641368154e14d6fd782a8ceb4026af53a9;hp=a2ff5880d5510fb7cb0d6755839c8b7b71fe3420;hb=9639f7d3783f2e624d6e11be19c49461d62cb5b5;hpb=1be2ed90a20618d71ddf34b8a07d038da0b36854 diff --git a/BaseTools/Source/C/GenCrc32/GenCrc32.c b/BaseTools/Source/C/GenCrc32/GenCrc32.c index a2ff5880d5..e1e11c6413 100644 --- a/BaseTools/Source/C/GenCrc32/GenCrc32.c +++ b/BaseTools/Source/C/GenCrc32/GenCrc32.c @@ -1,6 +1,7 @@ /** @file +Calculate Crc32 value and Verify Crc32 value for input data. -Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -9,13 +10,6 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - - GenCrc32.c - -Abstract: - Calculate Crc32 value and Verify Crc32 value for input data. - **/ #include @@ -29,7 +23,7 @@ Abstract: #define UTILITY_NAME "GenCrc32" #define UTILITY_MAJOR_VERSION 0 -#define UTILITY_MINOR_VERSION 1 +#define UTILITY_MINOR_VERSION 2 #define CRC32_NULL 0 #define CRC32_ENCODE 1 @@ -55,7 +49,7 @@ Returns: --*/ { - fprintf (stdout, "%s Version %d.%d Build %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); + fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); } VOID @@ -86,7 +80,7 @@ Returns: // // Copyright declaration // - fprintf (stdout, "Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.\n\n"); + fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n"); // // Details Option @@ -254,7 +248,7 @@ Returns: VerboseMsg ("%s tool start.", UTILITY_NAME); // - // Check Input paramters + // Check Input parameters // if (FileAction == CRC32_NULL) { Error (NULL, 0, 1001, "Missing option", "either the encode or the decode option must be specified!"); @@ -295,6 +289,7 @@ Returns: FileBuffer = (UINT8 *) malloc (FileSize); if (FileBuffer == NULL) { Error (NULL, 0, 4001, "Resource", "memory cannot be allcoated!"); + fclose (InFile); goto Finish; }