From 46a53191c1ad11a41c948594e972568e62d155b4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Jun 2012 13:58:20 +0000 Subject: minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/modules.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/core/modules.cpp') 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 ); -- cgit v1.2.3