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)
return _wrename(oldpath, newpath);
//return _wrename(oldpath, newpath);
return ReplaceFileW(newpath, oldpath, nullptr, 0, nullptr, nullptr) == 0;
return rename(oldpath, newpath);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment