]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
Ugly hack
[wimlib] / src / mount_image.c
index 69fad24468332471d7049e8707b6f4ef1349b320..090a828026e95e197180cf96bd8f4513125a9208 100644 (file)
@@ -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()");