X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=36b6583cae60233f1975bcb34aa6fea36ea321da;hp=422cd9ccaf4a6ea8298dca84ccd44a4271f722f7;hb=23ea88c8b6eae44e1a50b104f8a5d3314b59c4e9;hpb=901c4d3b47bebcf5b854e32559f8e693ad3b5f14 diff --git a/src/extract.c b/src/extract.c index 422cd9cc..36b6583c 100644 --- a/src/extract.c +++ b/src/extract.c @@ -658,11 +658,11 @@ extract_security(const tchar *path, struct apply_ctx *ctx, if (ctx->supported_features.security_descriptors && inode->i_security_id != -1) { - const struct wim_security_data *sd; + struct wim_security_data *sd; const u8 *desc; size_t desc_size; - sd = wim_const_security_data(ctx->wim); + sd = wim_get_current_security_data(ctx->wim); desc = sd->descriptors[inode->i_security_id]; desc_size = sd->sizes[inode->i_security_id]; @@ -2472,7 +2472,7 @@ extract_trees(WIMStruct *wim, struct wim_dentry **trees, size_t num_trees, ctx.progress.extract.target = target; } - ctx.target_dentry = wim_root_dentry(wim); + ctx.target_dentry = wim_get_current_root_dentry(wim); /* Note: ctx.target_dentry represents the dentry that gets extracted to * @target. There may be none, in which case it gets set to the image * root and never matches any of the dentries actually being extracted.