X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Ftemplate.c;h=6b21015a0aedf6e7b5000cc962213870f74d74ee;hb=07e37b8d03fb6cd8bd5905905dd52807774204cd;hp=7348258ee81539665fe7f2045a557478fa9c2fb1;hpb=5d3d469e410dc5f4a28814ad231336fc174cba56;p=wimlib diff --git a/src/template.c b/src/template.c index 7348258e..6b21015a 100644 --- a/src/template.c +++ b/src/template.c @@ -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;