summaryrefslogtreecommitdiff
path: root/plugins/ContactsPlus
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ContactsPlus')
-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();