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
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)