diff options
| author | Chun Kuan Lee <[email protected]> | 2018-08-06 01:32:11 +0000 |
|---|---|---|
| committer | Chun Kuan Lee <[email protected]> | 2018-09-11 21:09:46 +0800 |
| commit | d38bf9105d33147c899117a4c20ba7872733186f (patch) | |
| tree | 4802258b9fb6fe2ea00ce762fbd10cb52c7d9899 /src/util.cpp | |
| parent | Merge #13734: gui: Drop boost::scoped_array and use wchar_t API explicitly on... (diff) | |
| download | discoin-d38bf9105d33147c899117a4c20ba7872733186f.tar.xz discoin-d38bf9105d33147c899117a4c20ba7872733186f.zip | |
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 84a4adcfd..a844b4a24 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()); |