]> wimlib.net Git - wimlib/blobdiff - src/extract_image.c
imagex unmount --rebuild
[wimlib] / src / extract_image.c
index 22b12ba1ef52bf9ed59aff8760dc923b7bfc5089..ba9b8c675d47e90dd98c70e502236330dcfbf199 100644 (file)
@@ -28,7 +28,6 @@
  * along with wimlib; if not, see http://www.gnu.org/licenses/.
  */
 
-
 #include "config.h"
 
 #include <dirent.h>
@@ -175,7 +174,7 @@ static int extract_regular_file_unlinked(struct dentry *dentry,
                goto out;
        }
 
-       ret = extract_full_wim_resource_to_fd(lte, out_fd);
+       ret = extract_wim_resource_to_fd(lte, out_fd, wim_resource_size(lte));
        if (ret != 0) {
                ERROR("Failed to extract resource to `%s'", output_path);
                goto out;