summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/contact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Variables/src/contact.cpp')
-rw-r--r--plugins/Variables/src/contact.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Variables/src/contact.cpp b/plugins/Variables/src/contact.cpp
index b5258b422f..da723406ce 100644
--- a/plugins/Variables/src/contact.cpp
+++ b/plugins/Variables/src/contact.cpp
@@ -82,7 +82,7 @@ typedef struct {
/* cache for 'getcontactfromstring' service */
static CONTACTCE *cce = NULL;
static int cacheSize = 0;
-static CRITICAL_SECTION csContactCache;
+static mir_cs csContactCache;
static HANDLE hContactSettingChangedHook;
@@ -397,7 +397,6 @@ static int contactSettingChanged(WPARAM hContact, LPARAM lParam)
int initContactModule()
{
- InitializeCriticalSection(&csContactCache);
hContactSettingChangedHook = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, contactSettingChanged);
return 0;
}
@@ -405,7 +404,6 @@ int initContactModule()
int deinitContactModule()
{
UnhookEvent(hContactSettingChangedHook);
- DeleteCriticalSection(&csContactCache);
return 0;
}