Fixed error of pull request #714

This commit is contained in:
Alexandro Sánchez Bach 2014-08-04 01:52:36 +02:00
parent e3d38f704f
commit 90d0e69a56

View File

@ -125,13 +125,16 @@ bool rRemoveFile(const std::string &file)
#ifdef _WIN32 #ifdef _WIN32
if (!DeleteFile(ConvertUTF8ToWString(file).c_str())) { if (!DeleteFile(ConvertUTF8ToWString(file).c_str())) {
LOG_ERROR(GENERAL, "Error deleting %s: %i", file.c_str(), GetLastError()); LOG_ERROR(GENERAL, "Error deleting %s: %i", file.c_str(), GetLastError());
return false;
} }
#else #else
int err = unlink(file.c_str()); int err = unlink(file.c_str());
if (err) { if (err) {
LOG_ERROR(GENERAL, "Error unlinking %s: %i", file.c_str(), err); LOG_ERROR(GENERAL, "Error unlinking %s: %i", file.c_str(), err);
return false;
} }
#endif #endif
return true;
} }
wxFile::OpenMode convertOpenMode(rFile::OpenMode open) wxFile::OpenMode convertOpenMode(rFile::OpenMode open)