authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-01-31 16:52:59-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-01-31 16:52:59-05:00
log28873e762295d0e03bf913d45d5317aae8d57bcd
tree2e691c97eeb7b5618a11c9c7875eeb484d8ab023
parent545064c1d9137a603e3e28aa066ce9e65a1ed4b6

os.cpp: fix regression on Windows from 59c050e7


1 files changed, 1 insertions(+), 1 deletions(-)

src/os.cpp+1-1
...@@ -1838,7 +1838,7 @@ Error os_file_open_r(Buf *full_path, OsFile *out_file, OsTimeStamp *mtime) {...@@ -1838,7 +1838,7 @@ Error os_file_open_r(Buf *full_path, OsFile *out_file, OsTimeStamp *mtime) {
18381838
1839 if (mtime != nullptr) {1839 if (mtime != nullptr) {
1840 FILETIME last_write_time;1840 FILETIME last_write_time;
1841 if (!GetFileTime(file, nullptr, nullptr, &last_write_time)) {1841 if (!GetFileTime(result, nullptr, nullptr, &last_write_time)) {
1842 CloseHandle(result);1842 CloseHandle(result);
1843 return ErrorUnexpected;1843 return ErrorUnexpected;
1844 }1844 }