From 8f45a52fcac3c6979eef02718e43a8fff395eef7 Mon Sep 17 00:00:00 2001 From: shermp <14854761+shermp@users.noreply.github.com> Date: Wed, 2 Jan 2019 17:12:17 +1300 Subject: [PATCH] Make sure we are reading the sector bitmap --- minivhd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/minivhd.c b/minivhd.c index 1899939..e0dff00 100644 --- a/minivhd.c +++ b/minivhd.c @@ -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); } }