mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a failed lock release warning.
This commit is contained in:
parent
2b46ae59a0
commit
87eadad326
1 changed files with 3 additions and 1 deletions
|
@ -438,8 +438,10 @@ void ConsoleListener::SendToThread(LogTypes::LOG_LEVELS Level, const char *Text)
|
|||
}
|
||||
|
||||
// Double check we didn't start quitting.
|
||||
if (logPendingWritePos == (u32) -1)
|
||||
if (logPendingWritePos == (u32) -1) {
|
||||
LeaveCriticalSection(&criticalSection);
|
||||
return;
|
||||
}
|
||||
|
||||
Common::AtomicStoreRelease(logPendingWritePos, logWritePos);
|
||||
LeaveCriticalSection(&criticalSection);
|
||||
|
|
Loading…
Add table
Reference in a new issue