mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-23 17:13:44 +00:00
Fix a race condition in AutoCriticalSection.
CID=104232 Review URL: https://breakpad.appspot.com/398002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@972 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
1208a8e369
commit
5f4fd97781
1 changed files with 1 additions and 1 deletions
|
@ -63,8 +63,8 @@ class AutoCriticalSection {
|
|||
// the critical seciton has been entered already.
|
||||
void Release() {
|
||||
assert(taken_);
|
||||
LeaveCriticalSection(cs_);
|
||||
taken_ = false;
|
||||
LeaveCriticalSection(cs_);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue