Commit 3cf7aee6 authored by Jack Andersen's avatar Jack Andersen

Windows fix

parent 2401875b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment