aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-09-13 12:10:17 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2018-09-13 12:11:44 +0200
commit37b836ad09369d62244e79bf4ba806516f2344cc (patch)
treed2a7ebc9b35446f22c591d8ace8a0f8d2dbfd1de /src/util.cpp
parent477f258755265ce49bd56dfbd574616e2cd45584 (diff)
parentd38bf9105d33147c899117a4c20ba7872733186f (diff)
Merge #13888: Call unicode API on Windows
d38bf9105d33147c899117a4c20ba7872733186f Call unicode API on Windows (Chun Kuan Lee) Pull request description: Call Unicode API on Windows Tree-SHA512: 93c290ee79c9d911fdada8ba45e184fc4f14d3cb56f33f39223286213878b08e8c4dd296a80099c57797d3b8589870e6cff622b22e76123d7452659d49dd8309
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 6331dc2111..ee8bc94584 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -998,7 +998,7 @@ void CreatePidFile(const fs::path &path, pid_t pid)
bool RenameOver(fs::path src, fs::path dest)
{
#ifdef WIN32
- return MoveFileExA(src.string().c_str(), dest.string().c_str(),
+ return MoveFileExW(src.wstring().c_str(), dest.wstring().c_str(),
MOVEFILE_REPLACE_EXISTING) != 0;
#else
int rc = std::rename(src.string().c_str(), dest.string().c_str());