]> wimlib.net Git - wimlib/blobdiff - src/iterate_dir.c
read_wim_header(): Check return value of lseek()
[wimlib] / src / iterate_dir.c
index 4e286b157f105c502d9bc85aae29f2e1185965bd..d0311358b60c15924336a9d5d67f6f0f161ec72f 100644 (file)
@@ -66,7 +66,7 @@ init_wimlib_dentry(struct wimlib_dir_entry *wdentry, struct wim_dentry *dentry,
                return ret;
        wdentry->full_path = dentry->_full_path;
 
-       for (struct wim_dentry *d = dentry; !dentry_is_root(d); d = d->parent)
+       for (struct wim_dentry *d = dentry; !dentry_is_root(d); d = d->d_parent)
                wdentry->depth++;
 
        if (inode->i_security_id >= 0) {