summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-30 18:59:09 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-30 18:59:09 +0000
commit52ace5d0ddf05c78c282fb1df714eddd73c4e7e3 (patch)
treec6324f43363d7a6dfe511c187d8f050f9235b4f3 /plugins/CryptoPP/src
parent3655d8b6be56a16416aab5d410cb3574684ef708 (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13304 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src')
-rw-r--r--plugins/CryptoPP/src/commonheaders.h2
-rw-r--r--plugins/CryptoPP/src/main.cpp15
2 files changed, 4 insertions, 13 deletions
diff --git a/plugins/CryptoPP/src/commonheaders.h b/plugins/CryptoPP/src/commonheaders.h
index 2d9723616e..b5b5a9bb19 100644
--- a/plugins/CryptoPP/src/commonheaders.h
+++ b/plugins/CryptoPP/src/commonheaders.h
@@ -65,7 +65,7 @@ extern PLUGININFOEX pluginInfoEx;
extern HANDLE hPGPPRIV;
extern HANDLE hRSA4096;
-extern CRITICAL_SECTION localQueueMutex;
+extern mir_cs localQueueMutex;
void ExtractFile(char*,int,int);
size_t rtrim(LPCSTR);
diff --git a/plugins/CryptoPP/src/main.cpp b/plugins/CryptoPP/src/main.cpp
index 45e8a8f6c1..e6dfac13f3 100644
--- a/plugins/CryptoPP/src/main.cpp
+++ b/plugins/CryptoPP/src/main.cpp
@@ -8,8 +8,8 @@ HINSTANCE g_hInst;
HANDLE hPGPPRIV = NULL;
HANDLE hRSA4096 = NULL;
-CRITICAL_SECTION localQueueMutex;
-CRITICAL_SECTION localContextMutex;
+mir_cs localQueueMutex;
+mir_cs localContextMutex;
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
@@ -27,16 +27,7 @@ PLUGININFOEX pluginInfoEx = {
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID)
{
- if (dwReason == DLL_PROCESS_ATTACH) {
- g_hInst = hInst;
- InitializeCriticalSection(&localQueueMutex);
- InitializeCriticalSection(&localContextMutex);
- }
- else if (dwReason == DLL_PROCESS_DETACH) {
- DeleteCriticalSection(&localQueueMutex);
- DeleteCriticalSection(&localContextMutex);
- }
-
+ g_hInst = hInst;
return TRUE;
}