mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
COMMON: In getDataFork use SafeSeekableSubReadStream
It can be opened several times so re-seeking makes sense
This commit is contained in:
parent
3ed46d3484
commit
b8f3bc2732
@ -692,7 +692,7 @@ SeekableReadStream *MacResManager::getDataFork() {
|
||||
if (_mode == kResForkMacBinary) {
|
||||
_stream->seek(MBI_DFLEN);
|
||||
uint32 dataSize = _stream->readUint32BE();
|
||||
return new SeekableSubReadStream(_stream, MBI_INFOHDR, MBI_INFOHDR + dataSize);
|
||||
return new SafeSeekableSubReadStream(_stream, MBI_INFOHDR, MBI_INFOHDR + dataSize);
|
||||
}
|
||||
|
||||
File *file = new File();
|
||||
|
Loading…
Reference in New Issue
Block a user