rsym64: only compare lower 16 bits of checksum

svn path=/branches/ros-amd64-bringup/; revision=38973
This commit is contained in:
Timo Kreuzer
2009-01-20 13:46:24 +00:00
parent 7ad31d2719
commit bb91a6f44a
+1 -1
View File
@@ -753,7 +753,7 @@ ParsePEHeaders(PFILE_INFO File)
File->OptionalHeader->CheckSum = 0;
Checksum = CalculateChecksum(0, File->FilePtr, File->cbInFileSize);
Checksum += File->cbInFileSize;
if (Checksum != OldChecksum)
if ((Checksum & 0xffff) != (OldChecksum & 0xffff))
{
fprintf(stderr, "Input file has incorrect PE checksum: 0x%lx (calculated: 0x%lx)\n",
OldChecksum, Checksum);