hdd_image: Populate last sector for failed images
This commit is contained in:
@@ -393,7 +393,8 @@ retry_vhd:
|
|||||||
} else {
|
} else {
|
||||||
/* Failed for another reason */
|
/* Failed for another reason */
|
||||||
hdd_image_log("Failed for another reason\n");
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user