Patch #2045543: Possible fix for Drascula's decodeRLE()

svn-id: r33973
This commit is contained in:
Eugene Sandulenko 2008-08-17 18:58:23 +00:00
parent a32cae809b
commit 19b6334418

View File

@ -621,12 +621,11 @@ void DrasculaEngine::decodeRLE(byte* srcPtr, byte* dstPtr) {
pixel = *srcPtr++;
}
for (uint j = 0; j < repeat; j++) {
curByte++;
if (curByte > 64000) {
*dstPtr++ = pixel;
if (++curByte >= 64000) {
stopProcessing = true;
break;
}
*dstPtr++ = pixel;
}
}
}