]> wimlib.net Git - wimlib/blobdiff - src/xml.c
Limit can_modify_wim() calls; remove can_delete_from_wim()
[wimlib] / src / xml.c
index 383e20342dfddadabae9196380d9e866057e0dba..ecb73b221454227e2175abfa1fa888438f0cde93 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -1667,14 +1667,9 @@ wimlib_set_image_name(WIMStruct *wim, int image, const tchar *name)
 {
        tchar *p;
        int i;
 {
        tchar *p;
        int i;
-       int ret;
 
        DEBUG("Setting the name of image %d to %"TS, image, name);
 
 
        DEBUG("Setting the name of image %d to %"TS, image, name);
 
-       ret = can_modify_wim(wim);
-       if (ret)
-               return ret;
-
        if (name == NULL)
                name = T("");
 
        if (name == NULL)
                name = T("");
 
@@ -1708,11 +1703,6 @@ do_set_image_info_str(WIMStruct *wim, int image, const tchar *tstr,
 {
        tchar *tstr_copy;
        tchar **dest_tstr_p;
 {
        tchar *tstr_copy;
        tchar **dest_tstr_p;
-       int ret;
-
-       ret = can_modify_wim(wim);
-       if (ret)
-               return ret;
 
        if (image < 1 || image > wim->hdr.image_count) {
                ERROR("%d is not a valid image", image);
 
        if (image < 1 || image > wim->hdr.image_count) {
                ERROR("%d is not a valid image", image);