]> wimlib.net Git - wimlib/blobdiff - src/wim.c
unix_apply.c, unix_capture.c: Add, fix copyright notices
[wimlib] / src / wim.c
index c320b311ea21f32be9c2e06c0e65ed696a029c5a..8022423c98c52dc2796ed5244ef1f616ffc7b82f 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -197,7 +197,7 @@ select_wim_image(WIMStruct *w, int image)
        }
        w->current_image = image;
        imd = wim_get_current_image_metadata(w);
-       if (imd->root_dentry) {
+       if (imd->root_dentry || imd->modified) {
                ret = 0;
        } else {
                #ifdef ENABLE_DEBUG
@@ -453,7 +453,7 @@ begin_read(WIMStruct *w, const tchar *in_wim_path, int open_flags,
                        return WIMLIB_ERR_OPEN;
        }
 
-       ret = read_header(w->in_fd, &w->hdr, open_flags);
+       ret = read_header(w->filename, w->in_fd, &w->hdr, open_flags);
        if (ret)
                return ret;