hdd_image: Populate last sector for failed images

This commit is contained in:
RichardG867
2024-10-29 12:12:01 -03:00
parent d5b0ba9511
commit 94e5fded31

View File

@@ -393,7 +393,8 @@ retry_vhd:
} else {
/* Failed for another reason */
hdd_image_log("Failed for another reason\n");
hdd_images[id].type = HDD_IMAGE_RAW;
hdd_images[id].type = HDD_IMAGE_RAW;
hdd_images[id].last_sector = (uint32_t) (((uint64_t) hdd[id].spt) * ((uint64_t) hdd[id].hpc) * ((uint64_t) hdd[id].tracks)) - 1;
return 1;
}
} else {