From 40821ea1a6cac7896fdf33b14e4d4181b339e425 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Thu, 16 Jun 2016 19:30:51 -0400 Subject: [PATCH] Okay, that's wrong technically, the disk starts on sector 0 so subtract one --- source/patch/emunand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/patch/emunand.c b/source/patch/emunand.c index 75aed8b..65601f1 100644 --- a/source/patch/emunand.c +++ b/source/patch/emunand.c @@ -46,7 +46,7 @@ verify_emunand(uint32_t index, uint32_t *off, uint32_t *head) if (config.options[OPTION_EMUNAND_REVERSE]) { // Subtract offset from back of disk. - offset = getMMCDevice(1)->total_size - offset; + offset = ( getMMCDevice(1)->total_size - 1) - offset; } // Check for RedNAND/Normal physical layout on SD -- 2.39.5