commit | a3c838c8c515b680d5b241019609dd9a03a5b8f1 | [log] [tgz] |
---|---|---|
author | PW Hu <jlu.hpw@foxmail.com> | Thu Nov 11 14:34:44 2021 +0800 |
committer | PW Hu <jlu.hpw@foxmail.com> | Thu Nov 11 14:34:44 2021 +0800 |
tree | 56f4e1b785920438de1450f5bec24c15a795ed87 | |
parent | 945768eca2ab1f9cc48ee76f0cdf29d30c1f2980 [diff] |
Fix check of _zip_filetime_to_time_t
diff --git a/lib/zip_source_file_win32.c b/lib/zip_source_file_win32.c index 0dea2c1..34645b7 100644 --- a/lib/zip_source_file_win32.c +++ b/lib/zip_source_file_win32.c
@@ -184,7 +184,7 @@ zip_error_set(&ctx->error, ZIP_ER_READ, _zip_win32_error_to_errno(GetLastError())); return false; } - if (_zip_filetime_to_time_t(mtimeft, &mtime) < 0) { + if (!_zip_filetime_to_time_t(mtimeft, &mtime)) { zip_error_set(&ctx->error, ZIP_ER_READ, ERANGE); return false; }