[Libreoffice-commits] .: Branch 'libreoffice-3-6' - shell/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Sep 11 03:43:35 PDT 2012
shell/source/win32/zipfile/zipfile.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit bd116e73139e3340d6b66579c3813d767f380207
Author: Andras Timar <atimar at 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
Signed-off-by: Fridrich Å trba <fridrich.strba at bluewin.ch>
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)
More information about the Libreoffice-commits
mailing list