/*
* ntfs-3g_apply.c
*
- * Apply a WIM image directly to a NTFS volume using libntfs-3g. Restore as
+ * Apply a WIM image directly to an NTFS volume using libntfs-3g. Restore as
* much information as possible, including security data, file attributes, DOS
* names, and alternate data streams.
*/
}
/*
- * Extract a stream (default or alternate data) to an attribute of a NTFS file.
+ * Extract a stream (default or alternate data) to an attribute of an NTFS file.
*/
static int
ntfs_3g_extract_stream(file_spec_t file, const utf16lechar *raw_stream_name,
/* Extract stream data to the NTFS attribute. */
extract_ctx.na = na;
extract_ctx.offset = 0;
- ret = extract_wim_resource(lte, lte->size,
- 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);
static int
ntfs_3g_extract_unnamed_stream(file_spec_t file,
struct wim_lookup_table_entry *lte,
- struct apply_ctx *ctx)
+ struct apply_ctx *ctx,
+ struct wim_dentry *_ignore)
{
return ntfs_3g_extract_stream(file, NULL, 0, lte, ctx);
}