Fix GYBv3 load with safer offset load
This commit is contained in:
parent
63d2e12c27
commit
1254aec805
|
|
@ -1201,6 +1201,7 @@ void DivEngine::loadGYB(SafeReader& reader, std::vector<DivInstrument*>& ret, St
|
||||||
if (!reader.seek(patchPosOffset + patchSize, SEEK_SET)) {
|
if (!reader.seek(patchPosOffset + patchSize, SEEK_SET)) {
|
||||||
throw EndOfFileException(&reader, patchPosOffset + patchSize);
|
throw EndOfFileException(&reader, patchPosOffset + patchSize);
|
||||||
}
|
}
|
||||||
|
patchPosOffset = reader.tell();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reader.seek(0, SEEK_END);
|
reader.seek(0, SEEK_END);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue