Browse Source

Try to change is_path1_modified_after_path2

Because I probably do not understand how CompareFileTime works
rexim 4 years ago
parent
commit
7638841b1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nobuild.h

+ 1 - 1
nobuild.h

@@ -1041,7 +1041,7 @@ int is_path1_modified_after_path2(const char *path1, const char *path2)
     }
     fd_close(path2_fd);
 
-    return CompareFileTime(&path1, &path2) == 1;
+    return CompareFileTime(&path1, &path2) == -1;
 #else
     struct stat statbuf = {0};