]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix MS Build 2262/head
authorW. Felix Handte <w@felixhandte.com>
Mon, 10 Aug 2020 21:28:34 +0000 (17:28 -0400)
committerW. Felix Handte <w@felixhandte.com>
Mon, 10 Aug 2020 21:28:34 +0000 (17:28 -0400)
programs/fileio.c

index 2c0d2772de63dbd0000600779c88411609b256f6..d5b8a7d143bd1cf2820a6d0f44c9b6cd89571f18 100644 (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