diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-06 13:58:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-06 13:58:20 +0000 |
commit | 46a53191c1ad11a41c948594e972568e62d155b4 (patch) | |
tree | 7e57e6f7093fb0de766fe13a933d2f9231433e4d /src/core/modules.cpp | |
parent | 1fe5acae909ea64a1de9ac9f58cae5a3c2d3ad1f (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/modules.cpp')
-rw-r--r-- | src/core/modules.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/modules.cpp b/src/core/modules.cpp index c8d173f9a7..7c5c35b999 100644 --- a/src/core/modules.cpp +++ b/src/core/modules.cpp @@ -256,7 +256,7 @@ void DestroyModularEngine(void) int i;
THook* p;
EnterCriticalSection( &csHooks );
- for( i=0; i < hooks.getCount(); i++ ) {
+ for ( i=0; i < hooks.getCount(); i++ ) {
p = hooks[i];
if ( p->subscriberCount )
mir_free( p->subscriber );
@@ -596,13 +596,8 @@ static __inline TService* FindServiceByName( const char *name ) static HANDLE CreateServiceInt( int type, const char *name, MIRANDASERVICE serviceProc, void* object, LPARAM lParam)
{
- if ( name == NULL ) {
-#ifdef _DEBUG
- MessageBoxA(0,"Someone tried to create a NULL'd service, see call stack for more info","",0);
- DebugBreak();
-#endif
+ if ( name == NULL )
return NULL;
- }
TService tmp;
tmp.nameHash = hashstr( name );
|