summaryrefslogtreecommitdiffstats
path: root/src/download.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-02-14 01:33:35 +0100
committerGravatar Nikias Bassen2019-02-14 01:33:35 +0100
commit71cc441b9e742c135b19bda941f384bcaf052112 (patch)
tree0883e54b4c7c732c2058829d4d3801426f5b9ce9 /src/download.c
parent15b85554808e51d3009f3742b1800620a217b149 (diff)
downloadidevicerestore-71cc441b9e742c135b19bda941f384bcaf052112.tar.gz
idevicerestore-71cc441b9e742c135b19bda941f384bcaf052112.tar.bz2
win32: Workaround for _lseeki64 not seeking as expected...
NO COMMENT
Diffstat (limited to 'src/download.c')
-rw-r--r--src/download.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/download.c b/src/download.c
index b50abc1..2194091 100644
--- a/src/download.c
+++ b/src/download.c
@@ -140,6 +140,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress)
curl_easy_cleanup(handle);
#ifdef WIN32
+ fflush(f);
uint64_t sz = _lseeki64(fileno(f), 0, SEEK_CUR);
#else
off_t sz = ftello(f);