summaryrefslogtreecommitdiff
path: root/src/core/modules.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-13 17:26:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-13 17:26:45 +0000
commit5e686292c537275c8ea1399f311c082d905e8a63 (patch)
tree88a4f3921ff70323775f3329c8820a0fe947d74f /src/core/modules.cpp
parent90c154b4be566ec4a804217d0f1e50fb1e259b72 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@398 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/modules.cpp')
-rw-r--r--src/core/modules.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/modules.cpp b/src/core/modules.cpp
index 7c5c35b999..7b2a833c32 100644
--- a/src/core/modules.cpp
+++ b/src/core/modules.cpp
@@ -534,7 +534,7 @@ int UnhookEvent( HANDLE hHook )
p->subscriber[subscriberId].type = 0;
p->subscriber[subscriberId].pfnHook = NULL;
p->subscriber[subscriberId].hOwner = NULL;
- while( p->subscriberCount && p->subscriber[p->subscriberCount-1].type == 0 )
+ while ( p->subscriberCount && p->subscriber[p->subscriberCount-1].type == 0 )
p->subscriberCount--;
if ( p->subscriberCount == 0 ) {
if ( p->subscriber ) mir_free( p->subscriber );
@@ -671,18 +671,18 @@ int ServiceExists(const char *name)
INT_PTR CallService(const char *name,WPARAM wParam,LPARAM lParam)
{
#ifdef _DEBUG
- if (name==NULL) {
+ if (name == NULL) {
MessageBoxA(0,"Someone tried to CallService(NULL,..) see stack trace for details","",0);
DebugBreak();
return CALLSERVICE_NOTFOUND;
}
#else
- if (name==NULL) return CALLSERVICE_NOTFOUND;
+ if (name == NULL) return CALLSERVICE_NOTFOUND;
#endif
EnterCriticalSection(&csServices);
TService *pService = FindServiceByName(name);
- if (pService==NULL) {
+ if (pService == NULL) {
LeaveCriticalSection(&csServices);
#ifdef _DEBUG
//MessageBoxA(NULL,"Attempt to call non-existant service",name,MB_OK);
@@ -721,7 +721,7 @@ INT_PTR CallServiceSync(const char *name, WPARAM wParam, LPARAM lParam)
{
extern HWND hAPCWindow;
- if (name==NULL) return CALLSERVICE_NOTFOUND;
+ if (name == NULL) return CALLSERVICE_NOTFOUND;
// the service is looked up within the main thread, since the time it takes
// for the APC queue to clear the service being called maybe removed.
// even thou it may exists before the call, the critsec can't be locked between calls.