]> wimlib.net Git - wimlib/blobdiff - src/template.c
win32_capture.c: Fix exclusion when capture path ends in slash
[wimlib] / src / template.c
index 7348258ee81539665fe7f2045a557478fa9c2fb1..844f2f6dca3adaff9cf08ce42e864aa28ede2e1f 100644 (file)
@@ -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;