mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix a failed lock release warning.
This commit is contained in:
1 parent
2b46ae59a0
commit
87eadad326
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user