mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 12:25:05 +00:00
Fix GYBv3 load with safer offset load
This commit is contained in:
parent
63d2e12c27
commit
1254aec805
1 changed files with 1 additions and 0 deletions
|
@ -1201,6 +1201,7 @@ void DivEngine::loadGYB(SafeReader& reader, std::vector<DivInstrument*>& ret, St
|
|||
if (!reader.seek(patchPosOffset + patchSize, SEEK_SET)) {
|
||||
throw EndOfFileException(&reader, patchPosOffset + patchSize);
|
||||
}
|
||||
patchPosOffset = reader.tell();
|
||||
}
|
||||
}
|
||||
reader.seek(0, SEEK_END);
|
||||
|
|
Loading…
Reference in a new issue