shell/source/win32/zipfile/zipfile.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit ed08ddb31ba37da393a42586cbaa4c19e771598c Author: Andras Timar <ati...@suse.com> Date: Tue Sep 11 12:38:15 2012 +0200 fdo#53588 Assume cdir being in the last 1k of the file to speed-up search Change-Id: I25291c52d9f0117c70c48781c2eb575bb6b374ff diff --git a/shell/source/win32/zipfile/zipfile.cxx b/shell/source/win32/zipfile/zipfile.cxx index 381e52c..70a20f7 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits