diff options
author | 2022-08-28 01:12:08 +1000 | |
---|---|---|
committer | 2022-08-28 01:12:08 +1000 | |
commit | 14e058208309fc05f43cd673a8efd7940f6bb08c (patch) | |
tree | aa88a58626fd907d1361d0a096b73fd1540fe6f6 /src/tools/floptool.cpp | |
parent | 0c79a0a4ecad705a09aad054a7539090528c90c3 (diff) |
Miscellaneous fixes:
* util/ioprocsvec.h: Fixed truncating when a write doesn't reach the end
of stream. [F.Ulivi]
* floptool.cpp: Fixed reversed error checking logic. [F.Ulivi]
* Fixed SUBTARGET=tiny build (required Sega encrypted CPUs to be added).
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r-- | src/tools/floptool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/floptool.cpp b/src/tools/floptool.cpp index e39273e0a12..4ca0c39b1ca 100644 --- a/src/tools/floptool.cpp +++ b/src/tools/floptool.cpp @@ -542,7 +542,7 @@ static int generic_write(image_handler &ih, const char *srcpath, const char *dst auto dpath = path; dpath.pop_back(); err = fs->file_create(dpath, meta); - if(!err) { + if(err) { fprintf(stderr, "File creation failure.\n"); return 1; } @@ -550,7 +550,7 @@ static int generic_write(image_handler &ih, const char *srcpath, const char *dst auto dfork = image_handler::fload(srcpath); err = fs->file_write(path, dfork); - if(!err) { + if(err) { fprintf(stderr, "File writing failure.\n"); return 1; } |