summaryrefslogtreecommitdiff
path: root/plugins/Mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-29 14:19:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-29 14:19:12 +0000
commitc1840425166576b1cf187076a9344a78a20375b6 (patch)
tree7c7e1d66219c7b2ed6b57a397ac67b3541aa127e /plugins/Mir_core
parentd80ee102fba0f99ad2ab0e0e734267f76b3b639e (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Mir_core')
-rw-r--r--plugins/Mir_core/modules.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Mir_core/modules.cpp b/plugins/Mir_core/modules.cpp
index 8f3a123e7c..f451a70f60 100644
--- a/plugins/Mir_core/modules.cpp
+++ b/plugins/Mir_core/modules.cpp
@@ -575,10 +575,8 @@ MIR_CORE_DLL(int) CallFunctionAsync(void (__stdcall *func)(void *), void *arg)
MIR_CORE_DLL(void) KillModuleServices(HINSTANCE hInst)
{
- int i;
-
EnterCriticalSection(&csServices);
- for (i = services.getCount()-1; i >= 0; i--) {
+ for (int i = services.getCount()-1; i >= 0; i--) {
if (services[i]->hOwner == hInst) {
char szModuleName[ MAX_PATH ];
GetModuleFileNameA(services[i]->hOwner, szModuleName, sizeof(szModuleName));
@@ -590,10 +588,8 @@ MIR_CORE_DLL(void) KillModuleServices(HINSTANCE hInst)
MIR_CORE_DLL(void) KillObjectServices(void* pObject)
{
- int i;
-
EnterCriticalSection(&csServices);
- for (i = services.getCount()-1; i >= 0; i--)
+ for (int i = services.getCount()-1; i >= 0; i--)
if (services[i]->object == pObject)
DestroyServiceFunction((HANDLE)services[i]->nameHash);