[BOOTLIB]

Fix checksum computation

CID #1363451

svn path=/trunk/; revision=71941
This commit is contained in:
Pierre Schweitzer 2016-07-14 13:04:08 +00:00
parent ab07decf48
commit fccd3c6490

View file

@ -749,7 +749,7 @@ BlUtlCheckSum (
} }
} }
if (Length != Length) if (i != Length)
{ {
PartialSum += (unsigned __int8)Buffer[Length]; PartialSum += (unsigned __int8)Buffer[Length];
if (Flags & BL_UTL_CHECKSUM_COMPLEMENT) if (Flags & BL_UTL_CHECKSUM_COMPLEMENT)