X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fboot%2Fenviron%2Flib%2Fmisc%2Fimage.c;h=767fb89d4470a5428a89d62521d3222eabfd3d3f;hp=c1c2fea6f5469fea8c3005442854b0cc366110cf;hb=1338881e3b3084edbb48298642aa28a61b269ecb;hpb=be8b65c8a9707f0a2bd5ef218bddf888aecb918a diff --git a/reactos/boot/environ/lib/misc/image.c b/reactos/boot/environ/lib/misc/image.c index c1c2fea6f54..767fb89d447 100644 --- a/reactos/boot/environ/lib/misc/image.c +++ b/reactos/boot/environ/lib/misc/image.c @@ -507,6 +507,7 @@ BlImgLoadImageWithProgress2 ( /* Check if we should compute hash and/or signatures */ ComputeSignature = ImageFlags & BL_LOAD_IMG_COMPUTE_SIGNATURE; + ComputeHash = FALSE; if ((ComputeSignature) || (ImageFlags & BL_LOAD_IMG_COMPUTE_HASH)) { ComputeHash = TRUE; @@ -561,7 +562,7 @@ BlImgLoadImageWithProgress2 ( } /* Is the read fully complete? We need to finalize the hash if requested */ - if (ComputeHash != RemainingLength) + if (ComputeHash) { // todo: CRYPTO IS HARD }