X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Ftemplate.c;h=844f2f6dca3adaff9cf08ce42e864aa28ede2e1f;hb=f18e3243f913fa48aef3a8cbdad5444cece68cf2;hp=7348258ee81539665fe7f2045a557478fa9c2fb1;hpb=5d3d469e410dc5f4a28814ad231336fc174cba56;p=wimlib diff --git a/src/template.c b/src/template.c index 7348258e..844f2f6d 100644 --- a/src/template.c +++ b/src/template.c @@ -207,11 +207,14 @@ dentry_reference_template(struct wim_dentry *dentry, void *_args) WIMLIBAPI int wimlib_reference_template_image(WIMStruct *wim, int new_image, WIMStruct *template_wim, int template_image, - int flags, wimlib_progress_func_t progress_func) + int flags) { int ret; struct wim_image_metadata *new_imd; + if (flags != 0) + return WIMLIB_ERR_INVALID_PARAM; + if (wim == NULL || template_wim == NULL) return WIMLIB_ERR_INVALID_PARAM;