]> wimlib.net Git - wimlib/blobdiff - src/update_image.c
paths.c: Cleanup
[wimlib] / src / update_image.c
index c043d892e46f4056b8ed007feec99bbff19e1ce3..8f981ec640def7e1095246b1be3b9e763703f1e3 100644 (file)
@@ -382,7 +382,7 @@ rename_wim_path(WIMStruct *wim, const tchar *from, const tchar *to)
                         * directory */
                        if (!dentry_is_directory(dst))
                                return -ENOTDIR;
-                       if (inode_has_children(dst->d_inode))
+                       if (dentry_has_children(dst))
                                return -ENOTEMPTY;
                }
                parent_of_dst = dst->parent;