shell/source/win32/zipfile/zipfile.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bd116e73139e3340d6b66579c3813d767f380207
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
    Signed-off-by: Fridrich Å trba <fridrich.st...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to