From 2f0617376dcb4be5b837c5f888762e4e1ef3aceb Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 30 Apr 2015 06:07:51 +0000 Subject: cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@13272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/contact.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/Variables/src/contact.cpp') 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; } -- cgit v1.2.3