Browse Source

Merge pull request #34 from herrhotzenplotz/windoze

Attempt to fix GO_REBUILD_URSELF on Microsloth Windows
Alexey Kutepov 4 years ago
parent
commit
cb7f8a0132
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nobuild.h

+ 1 - 1
nobuild.h

@@ -1042,7 +1042,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_time, &path2_time) == 1;
 #else
     struct stat statbuf = {0};