From 5f4fd977811ca5b92c6f1b38c136d9c95974e1f8 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Tue, 19 Jun 2012 23:42:18 +0000 Subject: [PATCH] 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 --- src/client/windows/common/auto_critical_section.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: