diff options
Diffstat (limited to 'plugins/CryptoPP/src/main.cpp')
-rw-r--r-- | plugins/CryptoPP/src/main.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
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;
}
|