summaryrefslogtreecommitdiff
path: root/plugins/ContactsPlus/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-30 19:04:56 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-30 19:04:56 +0000
commitecda452d25f745f2f3c6a3a4a56ccc40ad64b7c3 (patch)
tree81ed7a6003d7706abf34ea13a19f9e5467bdd615 /plugins/ContactsPlus/src
parent130a48e084a0add0097fa3dbe523677e00cac373 (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13307 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus/src')
-rw-r--r--plugins/ContactsPlus/src/receive.cpp2
-rw-r--r--plugins/ContactsPlus/src/send.cpp2
-rw-r--r--plugins/ContactsPlus/src/send.h2
3 files changed, 2 insertions, 4 deletions
diff --git a/plugins/ContactsPlus/src/receive.cpp b/plugins/ContactsPlus/src/receive.cpp
index 0d5f3f600c..d11cbcb3a4 100644
--- a/plugins/ContactsPlus/src/receive.cpp
+++ b/plugins/ContactsPlus/src/receive.cpp
@@ -108,7 +108,7 @@ static void RebuildGroupCombo(HWND hwndDlg)
if (bHasGroups) {
int curs = SendMessage(hGroupsCombo, CB_GETCURSEL, 0, 0);
- TCHAR* curst;
+ TCHAR *curst = NULL;
EnableDlgItem(hwndDlg, IDC_ENABLEGROUPS, TRUE);
EnableGroupCombo(hwndDlg);
diff --git a/plugins/ContactsPlus/src/send.cpp b/plugins/ContactsPlus/src/send.cpp
index 38a11e0b45..40c87bad81 100644
--- a/plugins/ContactsPlus/src/send.cpp
+++ b/plugins/ContactsPlus/src/send.cpp
@@ -28,7 +28,6 @@
TSendProcessList::TSendProcessList()
{
- InitializeCriticalSection(&lock);
Count = 0;
Items = NULL;
}
@@ -36,7 +35,6 @@ TSendProcessList::TSendProcessList()
TSendProcessList::~TSendProcessList()
{
mir_free(Items);
- DeleteCriticalSection(&lock);
}
void TSendProcessList::Add(HANDLE hProcc)
diff --git a/plugins/ContactsPlus/src/send.h b/plugins/ContactsPlus/src/send.h
index 9b6f7b61a2..a9240ddef1 100644
--- a/plugins/ContactsPlus/src/send.h
+++ b/plugins/ContactsPlus/src/send.h
@@ -42,7 +42,7 @@
struct TSendProcessList {
int Count;
HANDLE* Items;
- CRITICAL_SECTION lock;
+ mir_cs lock;
void Add(HANDLE hProcc);
void Remove(HANDLE hProcc);
TSendProcessList();