X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fmount_image.c;h=090a828026e95e197180cf96bd8f4513125a9208;hb=4c16dabbfa70bc4c019463091acae1266f600113;hp=69fad24468332471d7049e8707b6f4ef1349b320;hpb=ded522fd0a15d740354329c5066ebd3473563e57;p=wimlib diff --git a/src/mount_image.c b/src/mount_image.c index 69fad244..090a8280 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2370,6 +2370,9 @@ WIMLIBAPI int wimlib_mount_image(WIMStruct *wim, int image, const char *dir, goto out; } + if (imd->inode_list.first) + imd->inode_list.first->pprev = &imd->inode_list.first; + if (imd->modified) { ERROR("Cannot mount image that was added " "with wimlib_add_image()");