https://bugzilla.tianocore.org/show_bug.cgi?id=2496
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
//\r
// Read all of the file contents.\r
//\r
- BytesRead = fread (*FileBuffer, sizeof (UINT8), *FileSize, InputFile);\r
+ BytesRead = (UINT32)fread (*FileBuffer, sizeof (UINT8), *FileSize, InputFile);\r
if (BytesRead != *FileSize * sizeof (UINT8)) {\r
fprintf (stderr, "Error reading the input file %s\n", InputFileName);\r
fclose (InputFile);\r