Windows fix

This commit is contained in:
Jack Andersen 2017-10-29 21:28:05 -10:00
parent 2401875b9a
commit 3cf7aee617

View File

@ -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