]> wimlib.net Git - wimlib/blobdiff - src/template.c
wimlib: strict checks for unassigned flags
[wimlib] / src / template.c
index 7348258ee81539665fe7f2045a557478fa9c2fb1..6b21015a0aedf6e7b5000cc962213870f74d74ee 100644 (file)
@@ -212,6 +212,9 @@ wimlib_reference_template_image(WIMStruct *wim, int new_image,
        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;