diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-24 09:27:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-24 09:27:51 +0000 |
commit | 2cd063aa25c633f2bf4213e007bf2df5d610d8e1 (patch) | |
tree | 2d0459e7abf80e8b5f1dea70ccfafd2a869429fe | |
parent | 7a45d135e355d566cf9dc8ac46678f5b2e3a5f58 (diff) |
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13812 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/mir_core/src/modules.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mir_core/src/modules.cpp b/src/mir_core/src/modules.cpp index 667b3e136f..e9a79be6b7 100644 --- a/src/mir_core/src/modules.cpp +++ b/src/mir_core/src/modules.cpp @@ -74,7 +74,7 @@ typedef struct // other static variables static BOOL bServiceMode = FALSE; -static CRITICAL_SECTION csHooks, csServices; +static mir_cs csHooks, csServices; static DWORD mainThreadId; static int hookId = 1; @@ -645,9 +645,6 @@ MIR_CORE_DLL(HINSTANCE) GetInstByAddress(void* codePtr) int InitialiseModularEngine(void) { - InitializeCriticalSection(&csHooks); - InitializeCriticalSection(&csServices); - mainThreadId = GetCurrentThreadId(); return 0; } @@ -655,8 +652,5 @@ int InitialiseModularEngine(void) void DestroyModularEngine(void) { DestroyHooks(); - DeleteCriticalSection(&csHooks); - DestroyServices(); - DeleteCriticalSection(&csServices); } |