X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Ftemplate.c;h=844f2f6dca3adaff9cf08ce42e864aa28ede2e1f;hp=7348258ee81539665fe7f2045a557478fa9c2fb1;hb=9d38cdb02481552e1f3c7f56181623b2b60fe857;hpb=5d3d469e410dc5f4a28814ad231336fc174cba56 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;