summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index 7fd81d3ae0..1be34355df 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -78,7 +78,7 @@ bool Delete(const char *filename)
if (IsDirectory(filename))
return false;
#ifdef _WIN32
- DeleteFile(filename);
+ DeleteFile(SanitizePath(filename).c_str());
#else
unlink(filename);
#endif
@@ -222,7 +222,7 @@ bool DeleteDir(const char *filename)
bool Rename(const char *srcFilename, const char *destFilename)
{
- return (rename(srcFilename, destFilename) == 0);
+ return (rename(SanitizePath(srcFilename).c_str(), SanitizePath(destFilename).c_str()) == 0);
}
bool Copy(const char *srcFilename, const char *destFilename)