From a4338aeb19dadb655fe3c29d2a95da196a6b07cd Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 26 Apr 2006 14:35:53 +0000 Subject: Use File::size to determine the size of a file, instead of doing a seek(0, SEEK_END) svn-id: r22184 --- common/unzip.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'common/unzip.cpp') 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; -- cgit v1.2.3