mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-14 15:00:18 +02:00
Fixed error of pull request #714
This commit is contained in:
1 parent
e3d38f704f
commit
90d0e69a56
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user