Revert "Fixed type mismatch in picture data."

This reverts commit 81aad168f8.
This commit is contained in:
Alex Smith 2012-08-11 13:23:22 +01:00
parent d384cac443
commit e1c748e4c0
1 changed files with 3 additions and 3 deletions

View File

@ -173,9 +173,9 @@ PicturePlayer::Play(void **callBackTable, int32 tableEntries, void *userData)
while ((pos + 6) <= fSize) {
int16 op = *reinterpret_cast<const int16 *>(data);
size_t size = *reinterpret_cast<const size_t *>(data + sizeof(int16));
pos += sizeof(int16) + sizeof(size_t);
data += sizeof(int16) + sizeof(size_t);
int32 size = *reinterpret_cast<const int32 *>(data + 2);
pos += 6;
data += 6;
if (pos + size > fSize)
debugger("PicturePlayer::Play: buffer overrun\n");