[Scummvm-cvs-logs] scummvm master -> fafe22731b3c8ee5891e0eb0428eeee165041b9e

m-kiewitz m_kiewitz at users.sourceforge.net
Sat Jul 4 02:26:24 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
fafe22731b COMMON: PKWARE data comp. library fix


Commit: fafe22731b3c8ee5891e0eb0428eeee165041b9e
    https://github.com/scummvm/scummvm/commit/fafe22731b3c8ee5891e0eb0428eeee165041b9e
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-07-04T02:26:12+02:00

Commit Message:
COMMON: PKWARE data comp. library fix

fixes dictionary issues with some compressed data

Changed paths:
    common/dcl.cpp



diff --git a/common/dcl.cpp b/common/dcl.cpp
index b5bbc4e..2d75c9b 100644
--- a/common/dcl.cpp
+++ b/common/dcl.cpp
@@ -420,9 +420,9 @@ bool DecompressorDCL::unpack(SeekableReadStream *sourceStream, WriteStream *targ
 				dictionary[dictionaryNextIndex] = dictionary[dictionaryIndex];
 				dictionaryNextIndex++; dictionaryIndex++;
 
-				if (dictionaryIndex >= dictionaryPos)
+				if (dictionaryIndex == dictionaryPos)
 					dictionaryIndex = dictionaryBaseIndex;
-				if (dictionaryNextIndex >= dictionarySize)
+				if (dictionaryNextIndex == dictionarySize)
 					dictionaryNextIndex = 0;
 
 				tokenLength--;






More information about the Scummvm-git-logs mailing list