diff options
author | Max Horn | 2006-04-26 14:35:53 +0000 |
---|---|---|
committer | Max Horn | 2006-04-26 14:35:53 +0000 |
commit | a4338aeb19dadb655fe3c29d2a95da196a6b07cd (patch) | |
tree | 5286f45152d7cecf236d106ab5289c7588857a74 /common/unzip.cpp | |
parent | cd528083f955dece5bf1c97085efc1d8b0e5857f (diff) | |
download | scummvm-rg350-a4338aeb19dadb655fe3c29d2a95da196a6b07cd.tar.gz scummvm-rg350-a4338aeb19dadb655fe3c29d2a95da196a6b07cd.tar.bz2 scummvm-rg350-a4338aeb19dadb655fe3c29d2a95da196a6b07cd.zip |
Use File::size to determine the size of a file, instead of doing a seek(0, SEEK_END)
svn-id: r22184
Diffstat (limited to 'common/unzip.cpp')
-rw-r--r-- | common/unzip.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/unzip.cpp b/common/unzip.cpp index aa267d2ced..c9f534820f 100644 --- a/common/unzip.cpp +++ b/common/unzip.cpp @@ -256,13 +256,10 @@ local uLong unzlocal_SearchCentralDir(Common::File &fin) uLong uMaxBack=0xffff; /* maximum size of global comment */ uLong uPosFound=0; - fin.seek(0, SEEK_END); + uSizeFile = fin.size(); if (fin.ioFailed()) return 0; - - uSizeFile = fin.pos(); - if (uMaxBack>uSizeFile) uMaxBack = uSizeFile; |