Revert "Fixed type mismatch in picture data."
This reverts commit 81aad168f8
.
This commit is contained in:
parent
d384cac443
commit
e1c748e4c0
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue