if (mount_flags & WIMLIB_MOUNT_FLAG_READWRITE) {
if (!wim->filename)
return WIMLIB_ERR_NO_FILENAME;
- ret = can_delete_from_wim(wim);
+ ret = can_modify_wim(wim);
if (ret)
return ret;
}
ret = do_unmount(dir);
if (progfunc) {
/* Terminate the progress thread. */
- char empty[0];
+ char empty[1];
mq_send(mq, empty, 0, 1);
pthread_join(commit_progress_tid, NULL);
}