From b6babc688d3d49ca32c3dbadfb2a4e32e9a43cdd Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 4 Oct 2019 21:13:31 +0200 Subject: Windows: Update libzip to version 1.5.2 --- src/Common/libzip/zip_source_seek.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/Common/libzip/zip_source_seek.c') diff --git a/src/Common/libzip/zip_source_seek.c b/src/Common/libzip/zip_source_seek.c index aed53b87..c7bd8e6e 100644 --- a/src/Common/libzip/zip_source_seek.c +++ b/src/Common/libzip/zip_source_seek.c @@ -1,6 +1,6 @@ /* zip_source_seek.c -- seek to offset - Copyright (C) 2014 Dieter Baron and Thomas Klausner + Copyright (C) 2014-2018 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at @@ -50,7 +50,12 @@ zip_source_seek(zip_source_t *src, zip_int64_t offset, int whence) { args.offset = offset; args.whence = whence; - return (_zip_source_call(src, &args, sizeof(args), ZIP_SOURCE_SEEK) < 0 ? -1 : 0); + if (_zip_source_call(src, &args, sizeof(args), ZIP_SOURCE_SEEK) < 0) { + return -1; + } + + src->eof = 0; + return 0; } -- cgit v1.2.3