mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-24 01:29:41 +00:00
Fixed crash that could occur if ValidateFrame is called again before _runningTest is set to false at the end of a test
This commit is contained in:
parent
76e060907d
commit
b6fc3471f8
@ -59,9 +59,11 @@ void AutoRomTest::ValidateFrame(uint16_t* ppuFrameBuffer)
|
||||
|
||||
if(memcmp(_screenshotHashes.front(), md5Hash, 16) != 0) {
|
||||
_testResult = false;
|
||||
_runningTest = false;
|
||||
_signal.Signal();
|
||||
} else if (_currentCount == 0 && _repetitionCount.empty()) {
|
||||
//End of test
|
||||
_runningTest = false;
|
||||
_signal.Signal();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user