summaryrefslogtreecommitdiff
path: root/shell/source/win32/zipfile/zipfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/win32/zipfile/zipfile.cxx')
-rw-r--r--shell/source/win32/zipfile/zipfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/source/win32/zipfile/zipfile.cxx b/shell/source/win32/zipfile/zipfile.cxx
index 270fbe1ec6bd..5dcc02a6a3bb 100644
--- a/shell/source/win32/zipfile/zipfile.cxx
+++ b/shell/source/win32/zipfile/zipfile.cxx
@@ -304,7 +304,7 @@ static bool findCentralDirectoryEnd(StreamInterface *stream)
try
{
- for (long nOffset = nLength - BLOCK_SIZE;
+ for (long nOffset = nLength - BLOCK_SIZE - 4;
nOffset > 0; nOffset -= BLOCK_SIZE)
{
if (findSignatureAtOffset(stream, nOffset))