From fccd3c6490a9243182f077589c820cd4f86a1abb Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Thu, 14 Jul 2016 13:04:08 +0000 Subject: [PATCH] [BOOTLIB] Fix checksum computation CID #1363451 svn path=/trunk/; revision=71941 --- reactos/boot/environ/lib/misc/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/boot/environ/lib/misc/util.c b/reactos/boot/environ/lib/misc/util.c index 3e152d3dc07..c7ca31ab740 100644 --- a/reactos/boot/environ/lib/misc/util.c +++ b/reactos/boot/environ/lib/misc/util.c @@ -749,7 +749,7 @@ BlUtlCheckSum ( } } - if (Length != Length) + if (i != Length) { PartialSum += (unsigned __int8)Buffer[Length]; if (Flags & BL_UTL_CHECKSUM_COMPLEMENT)