DEBUG("Setting the name of image %d to %s", image, name);
+ if (!w)
+ return WIMLIB_ERR_INVALID_PARAM;
+
if (!name || !*name) {
ERROR("Must specify a non-empty string for the image name");
return WIMLIB_ERR_INVALID_PARAM;
DEBUG("Setting the description of image %d to %s", image, description);
+ if (!w)
+ return WIMLIB_ERR_INVALID_PARAM;
+
if (image < 1 || image > w->hdr.image_count) {
ERROR("%d is not a valid image", image);
return WIMLIB_ERR_INVALID_IMAGE;