summaryrefslogtreecommitdiff
path: root/plugins/Exchange/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Exchange/src/utils.cpp')
-rw-r--r--plugins/Exchange/src/utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Exchange/src/utils.cpp b/plugins/Exchange/src/utils.cpp
index 4a2ff20514..4208576f9f 100644
--- a/plugins/Exchange/src/utils.cpp
+++ b/plugins/Exchange/src/utils.cpp
@@ -23,6 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define ___DEB
+mir_cs csCheck;
+
int LogInit()
{
#ifdef ___DEBUGG
@@ -201,7 +203,7 @@ RECT AnchorCalcPos(HWND window, const RECT *rParent, const WINDOWPOS *parentPos,
DWORD WINAPI CheckEmailWorkerThread(LPVOID data)
{
- EnterCriticalSection(&csCheck);
+ mir_cslock lck(csCheck);
int bForceAttempt = (int) data;
@@ -210,8 +212,6 @@ DWORD WINAPI CheckEmailWorkerThread(LPVOID data)
exchangeServer.Check(bForceAttempt);
- LeaveCriticalSection(&csCheck);
-
return 0;
}