mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Call unicode API on Windows
This commit is contained in:
parent
362518791a
commit
d38bf9105d
2 changed files with 7 additions and 5 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue