Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fixed crash that could occur if ValidateFrame is called again before …
Browse files Browse the repository at this point in the history
…_runningTest is set to false at the end of a test
  • Loading branch information
SourMesen committed Dec 29, 2015
1 parent 76e0609 commit b6fc347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/AutoRomTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit b6fc347

Please sign in to comment.