mirror of
https://github.com/encounter/aurora.git
synced 2025-08-03 10:55:36 +00:00
Windows fix
This commit is contained in:
parent
382abc6455
commit
62be64f1aa
@ -318,7 +318,8 @@ static inline int64_t FTell(FILE* fp)
|
||||
static inline int Rename(const SystemChar* oldpath, const SystemChar* newpath)
|
||||
{
|
||||
#if CARD_UCS2
|
||||
return _wrename(oldpath, newpath);
|
||||
//return _wrename(oldpath, newpath);
|
||||
return ReplaceFileW(newpath, oldpath, nullptr, 0, nullptr, nullptr) == 0;
|
||||
#else
|
||||
return rename(oldpath, newpath);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user