fix potential hangs in saveFur again
This commit is contained in:
parent
2fbc39bc90
commit
85d9a52dee
|
@ -2669,16 +2669,19 @@ SafeWriter* DivEngine::saveFur(bool notPrimary) {
|
|||
if (song.ins.size()>256) {
|
||||
logE("maximum number of instruments is 256!");
|
||||
lastError="maximum number of instruments is 256";
|
||||
saveLock.unlock();
|
||||
return NULL;
|
||||
}
|
||||
if (song.wave.size()>256) {
|
||||
logE("maximum number of wavetables is 256!");
|
||||
lastError="maximum number of wavetables is 256";
|
||||
saveLock.unlock();
|
||||
return NULL;
|
||||
}
|
||||
if (song.sample.size()>256) {
|
||||
logE("maximum number of samples is 256!");
|
||||
lastError="maximum number of samples is 256";
|
||||
saveLock.unlock();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue