summaryrefslogtreecommitdiffstats
path: root/src/download.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-02-02 03:15:25 +0100
committerGravatar Nikias Bassen2019-02-02 03:15:25 +0100
commit8aa4246ddef30c0e114362b6ef2a8e6ee0ed3817 (patch)
treeacb1203e8868f33d651972f0aadfb6775e92cc95 /src/download.c
parent8a4cc41e2e2caa080713f321ad9c98338a0e50f5 (diff)
downloadidevicerestore-8aa4246ddef30c0e114362b6ef2a8e6ee0ed3817.tar.gz
idevicerestore-8aa4246ddef30c0e114362b6ef2a8e6ee0ed3817.tar.bz2
win32: Use _lseeki64 instead of _fseeki64/_ftelli64 and don't link against msvcr100.dll
What a mess it is, all these msvcr*.dll - incompatible without limits
Diffstat (limited to 'src/download.c')
-rw-r--r--src/download.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/download.c b/src/download.c
index 8bae52f..e09d911 100644
--- a/src/download.c
+++ b/src/download.c
@@ -140,7 +140,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress)
curl_easy_cleanup(handle);
#ifdef WIN32
- uint64_t sz = _ftelli64(f);
+ uint64_t sz = _lseeki64(fileno(f), 0, SEEK_CUR);
#else
off_t sz = ftello(f);
#endif