* 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);
const wimlib_SECURITY_DESCRIPTOR_RELATIVE *desc =
(const wimlib_SECURITY_DESCRIPTOR_RELATIVE*)_desc;
wimlib_SECURITY_DESCRIPTOR_RELATIVE *desc_new;
- u32 sid_offset;
const wimlib_SID *owner, *group, *sid;
/* Don't attempt to fix clearly invalid security descriptors. */