diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 19:04:56 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 19:04:56 +0000 |
commit | ecda452d25f745f2f3c6a3a4a56ccc40ad64b7c3 (patch) | |
tree | 81ed7a6003d7706abf34ea13a19f9e5467bdd615 | |
parent | 130a48e084a0add0097fa3dbe523677e00cac373 (diff) |
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13307 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/ContactsPlus/src/receive.cpp | 2 | ||||
-rw-r--r-- | plugins/ContactsPlus/src/send.cpp | 2 | ||||
-rw-r--r-- | plugins/ContactsPlus/src/send.h | 2 |
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();
|