diff --git a/source/fs.c b/source/fs.c index 9a243d6..729664d 100644 --- a/source/fs.c +++ b/source/fs.c @@ -457,6 +457,7 @@ bool PathCopyVirtual(const char* destdir, const char* orig) { } ShowProgress(1, 1, orig); f_close(&dfile); + if (!ret) f_unlink(dest); } else { return false; } @@ -596,6 +597,7 @@ bool PathCopyWorker(char* dest, char* orig, bool overwrite, bool move) { f_close(&ofile); f_close(&dfile); + if (!ret) f_unlink(dest); } *(--dname) = '\0';