From 90d0e69a569e8a74fbada773c07fcce44b5ea587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandro=20S=C3=A1nchez=20Bach?= Date: Mon, 4 Aug 2014 01:52:36 +0200 Subject: [PATCH] Fixed error of pull request #714 --- Utilities/rFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/rFile.cpp b/Utilities/rFile.cpp index 345aa284c5..853f2678ef 100644 --- a/Utilities/rFile.cpp +++ b/Utilities/rFile.cpp @@ -125,13 +125,16 @@ bool rRemoveFile(const std::string &file) #ifdef _WIN32 if (!DeleteFile(ConvertUTF8ToWString(file).c_str())) { LOG_ERROR(GENERAL, "Error deleting %s: %i", file.c_str(), GetLastError()); + return false; } #else int err = unlink(file.c_str()); if (err) { LOG_ERROR(GENERAL, "Error unlinking %s: %i", file.c_str(), err); + return false; } #endif + return true; } wxFile::OpenMode convertOpenMode(rFile::OpenMode open)