From 14e058208309fc05f43cd673a8efd7940f6bb08c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 28 Aug 2022 01:12:08 +1000 Subject: 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). --- src/tools/floptool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/floptool.cpp') 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; } -- cgit v1.2.3-70-g09d2