From bd116e73139e3340d6b66579c3813d767f380207 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Tue, 11 Sep 2012 12:38:15 +0200 Subject: fdo#53588 Assume cdir being in the last 1k of the file to speed-up search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I25291c52d9f0117c70c48781c2eb575bb6b374ff Signed-off-by: Fridrich Štrba --- shell/source/win32/zipfile/zipfile.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'shell') diff --git a/shell/source/win32/zipfile/zipfile.cxx b/shell/source/win32/zipfile/zipfile.cxx index 381e52cf7642..70a20f765038 100644 --- a/shell/source/win32/zipfile/zipfile.cxx +++ b/shell/source/win32/zipfile/zipfile.cxx @@ -264,6 +264,7 @@ static bool findCentralDirectoryEnd(StreamInterface *stream) if (!stream) return false; stream->sseek(0, SEEK_SET); + if (stream->sseek(-1024, SEEK_END)) stream->sseek(0, SEEK_SET); try { while (stream->stell() != -1) -- cgit