Fix MS Build

dev
W. Felix Handte 2020-08-10 17:28:34 -04:00
parent b02cdf63b0
commit 953f0a072a
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ static int FIO_removeFile(const char* path)
#if defined(_WIN32) || defined(WIN32)
/* windows doesn't allow remove read-only files,
* so try to make it writable first */
if (!(statbuf.mode & _S_IWRITE)) {
if (!(statbuf.st_mode & _S_IWRITE)) {
UTIL_chmod(path, &statbuf, _S_IWRITE);
}
#endif