]> Chaos Git - corbenik/corbenik.git/commitdiff
Okay, that's wrong technically, the disk starts on sector 0 so subtract one
authorchaoskagami <chaos.kagami@gmail.com>
Thu, 16 Jun 2016 23:30:51 +0000 (19:30 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Thu, 16 Jun 2016 23:30:51 +0000 (19:30 -0400)
source/patch/emunand.c

index 75aed8bda842ae83d3d0b34c2b07cbbadf8a1fbf..65601f1cd80f7c9687619e25e621ddb126b060d2 100644 (file)
@@ -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