diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-08-06 01:32:11 +0000 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-09-11 21:09:46 +0800 |
commit | d38bf9105d33147c899117a4c20ba7872733186f (patch) | |
tree | 4802258b9fb6fe2ea00ce762fbd10cb52c7d9899 /src/util.cpp | |
parent | 362518791ade834d7f1f25b679ba236dcf5c3ad0 (diff) |
Call unicode API on Windows
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 2 |
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()); |