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:
thestig@chromium.org 2012-06-19 23:42:18 +00:00
parent 1208a8e369
commit 5f4fd97781

View file

@ -63,8 +63,8 @@ class AutoCriticalSection {
// the critical seciton has been entered already.
void Release() {
assert(taken_);
LeaveCriticalSection(cs_);
taken_ = false;
LeaveCriticalSection(cs_);
}
private: