X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-3g_apply.c;h=86a28c10e2aa31e2be7182e5ff0a521901cfe6cc;hp=356f5fe7b61cbca6374a0365e681729fd8fb2c5a;hb=335e7f84a6ea46ea13e333c7294be0594fc859ca;hpb=65410297b5e1eace172efddaa5cfe5fe77fa251d diff --git a/src/ntfs-3g_apply.c b/src/ntfs-3g_apply.c index 356f5fe7..86a28c10 100644 --- a/src/ntfs-3g_apply.c +++ b/src/ntfs-3g_apply.c @@ -261,14 +261,14 @@ ntfs_3g_extract_stream(file_spec_t file, const utf16lechar *raw_stream_name, * to skip even more useless work (for example it fills resized * attributes with 0's, then we just override it.) */ ret = WIMLIB_ERR_WRITE; - if (ntfs_attr_truncate_solid(na, wim_resource_size(lte))) + if (ntfs_attr_truncate_solid(na, lte->size)) goto out_attr_close; /* Extract stream data to the NTFS attribute. */ extract_ctx.na = na; extract_ctx.offset = 0; - ret = extract_wim_resource(lte, wim_resource_size(lte), - ntfs_3g_extract_wim_chunk, &extract_ctx); + ret = extract_stream(lte, lte->size, + ntfs_3g_extract_wim_chunk, &extract_ctx); /* Clean up and return. */ out_attr_close: ntfs_attr_close(na);