aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-08-06 01:32:11 +0000
committerChun Kuan Lee <ken2812221@gmail.com>2018-09-11 21:09:46 +0800
commitd38bf9105d33147c899117a4c20ba7872733186f (patch)
tree4802258b9fb6fe2ea00ce762fbd10cb52c7d9899 /src/util.cpp
parent362518791ade834d7f1f25b679ba236dcf5c3ad0 (diff)
downloadbitcoin-d38bf9105d33147c899117a4c20ba7872733186f.tar.xz
Call unicode API on Windows
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 84a4adcfd4..a844b4a248 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -997,7 +997,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());