diff options
Diffstat (limited to 'src')
-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); } |