summaryrefslogtreecommitdiff
path: root/protocols/MRA
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-11 10:58:51 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-11 10:58:51 +0000
commit93e2b89909ac060eccb27a3a651ab3efb4911c5c (patch)
treed4193a80fe5440243453305b0124f409826eeaee /protocols/MRA
parent5af12c9cae8b3622e5237d2c968344c9733b2056 (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13522 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA')
-rw-r--r--protocols/MRA/src/MraProto.cpp2
-rw-r--r--protocols/MRA/src/MraProto.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp
index 887ca14491..7274ba6954 100644
--- a/protocols/MRA/src/MraProto.cpp
+++ b/protocols/MRA/src/MraProto.cpp
@@ -12,7 +12,6 @@ CMraProto::CMraProto(const char* _module, const TCHAR* _displayName) :
m_bLoggedIn(false),
m_groups(5, NumericKeySortT)
{
- InitializeCriticalSectionAndSpinCount(&csCriticalSectionSend, 0);
MraSendQueueInitialize(0, &hSendQueueHandle);
MraFilesQueueInitialize(0, &hFilesQueueHandle);
MraMPopSessionQueueInitialize(&hMPopSessionQueue);//getByte("AutoAuthOnWebServices", MRA_DEFAULT_AUTO_AUTH_ON_WEB_SVCS)
@@ -72,7 +71,6 @@ CMraProto::~CMraProto()
MraMPopSessionQueueDestroy(hMPopSessionQueue);
MraFilesQueueDestroy(hFilesQueueHandle);
MraSendQueueDestroy(hSendQueueHandle);
- DeleteCriticalSection(&csCriticalSectionSend);
}
INT_PTR CMraProto::MraCreateAccMgrUI(WPARAM, LPARAM lParam)
diff --git a/protocols/MRA/src/MraProto.h b/protocols/MRA/src/MraProto.h
index 1a4f5a6a06..9d2d3e437a 100644
--- a/protocols/MRA/src/MraProto.h
+++ b/protocols/MRA/src/MraProto.h
@@ -191,7 +191,7 @@ struct CMraProto : public PROTO<CMraProto>
char szNewMailSound[MAX_PATH];
- CRITICAL_SECTION csCriticalSectionSend;
+ mir_cs csCriticalSectionSend;
MCONTACT AddToListByEmail(LPCTSTR plpsEMail, LPCTSTR plpsNick, LPCTSTR plpsFirstName, LPCTSTR plpsLastName, DWORD dwFlags);