summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/floptool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r--src/tools/floptool.cpp4
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;
}