summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-08-02 22:01:47 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-08-02 22:01:47 +0000
commit6a36bae5045d2d08ff779948fbddbbcdc9cb7442 (patch)
treedb54db853a775e04f91ef5087161d4a70d237435 /src/tools
parent6564c7b398079a05ba9153dda0adae2939b40e22 (diff)
Fix chdman -update to leave the write protect state alone when updating
uncompressed CHDs. [Michael Zapf]
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/chdman.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/chdman.c b/src/tools/chdman.c
index 8165710ab4f..d835fd6445a 100644
--- a/src/tools/chdman.c
+++ b/src/tools/chdman.c
@@ -656,7 +656,7 @@ static int do_createcd(int argc, char *argv[], int param)
}
/* cleanup */
- err = chd_compress_finish(chd);
+ err = chd_compress_finish(chd, TRUE);
if (err != CHDERR_NONE)
fprintf(stderr, "Error during compression finalization: %s\n", chd_error_string(err));
else
@@ -1055,7 +1055,7 @@ static int do_createav(int argc, char *argv[], int param)
}
/* finish compression */
- err = chd_compress_finish(chd);
+ err = chd_compress_finish(chd, TRUE);
if (err != CHDERR_NONE)
goto cleanup;
else
@@ -2874,7 +2874,7 @@ static chd_error chdman_compress_file(chd_file *chd, const char *rawfile, UINT32
}
/* finish compression */
- err = chd_compress_finish(chd);
+ err = chd_compress_finish(chd, TRUE);
if (err != CHDERR_NONE)
goto cleanup;
@@ -3031,7 +3031,7 @@ static chd_error chdman_compress_chd(chd_file *chd, chd_file *source, UINT32 tot
}
/* finish compression */
- err = chd_compress_finish(chd);
+ err = chd_compress_finish(chd, !(source_header->flags & CHDFLAGS_IS_WRITEABLE));
if (err != CHDERR_NONE)
goto cleanup;