From 90bc9b46847645fae17681b12df6305a28d9c73a Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 30 Jul 2012 00:39:09 +0300 Subject: trivial fixes --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index c49623d..5d9ce23 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -343,8 +343,8 @@ int __declspec(dllexport)Load() if( bReplaceHistory ) { -/* hServiceFunc = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY,ShowExportHistory); //this need new code - if( hServiceFunc ) + hServiceFunc = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY,ShowExportHistory); //this need new code +/* if( hServiceFunc ) { int *disableDefaultModule=(int*)CallService(MS_PLUGINS_GETDISABLEDEFAULTARRAY,0,0); if( disableDefaultModule ) @@ -356,9 +356,9 @@ int __declspec(dllexport)Load() DestroyServiceFunction( hServiceFunc ); hServiceFunc = 0; } - } + }*/ - if( ! hServiceFunc ) */ + if( ! hServiceFunc ) MessageBox( NULL , TranslateTS(_T("Failed to replace Miranda History.\r\nThis is most likely due to changes in Miranda.")) , MSG_BOX_TITEL , MB_OK ); } -- cgit v1.2.3