aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-06-19 23:42:18 +0000
committerthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-06-19 23:42:18 +0000
commit5f4fd977811ca5b92c6f1b38c136d9c95974e1f8 (patch)
treeb067b931425910c3efde23e679863e3593b7369c
parentThis is a fix for a stackwalker_x86 issue which has to (diff)
downloadbreakpad-5f4fd977811ca5b92c6f1b38c136d9c95974e1f8.tar.xz
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
-rw-r--r--src/client/windows/common/auto_critical_section.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/windows/common/auto_critical_section.h b/src/client/windows/common/auto_critical_section.h
index a2076b04..40287427 100644
--- a/src/client/windows/common/auto_critical_section.h
+++ b/src/client/windows/common/auto_critical_section.h
@@ -63,8 +63,8 @@ class AutoCriticalSection {
// the critical seciton has been entered already.
void Release() {
assert(taken_);
- LeaveCriticalSection(cs_);
taken_ = false;
+ LeaveCriticalSection(cs_);
}
private: