Make sure we are reading the sector bitmap

This commit is contained in:
shermp
2019-01-02 17:12:17 +13:00
parent cbdd3ba21f
commit 8f45a52fca

View File

@@ -703,6 +703,7 @@ int vhd_write_sectors(VHDMeta *vhdm, FILE *f, int offset, int nr_sectors, void *
buff_ptr += VHD_SECTOR_SZ;
if (vhdm->type == VHD_DIFF)
{
vhd_read_sector_bitmap(vhdm, f, curr_blk);
VHD_SETBIT(vhdm->sparse_bitmap_arr[curr_blk].bitmap, sib);
}
}