From 9c4510cd09c2fb34eeb1cefe58d70a7fb75e5ad4 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 12 Jun 2015 19:21:42 +0000 Subject: LotusNotify: - options redesign (by pepinlebref) - minor warnings fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@14135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/LotusNotify/src/debug.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'plugins/LotusNotify/src/debug.cpp') diff --git a/plugins/LotusNotify/src/debug.cpp b/plugins/LotusNotify/src/debug.cpp index 754705a827..37f5f26948 100644 --- a/plugins/LotusNotify/src/debug.cpp +++ b/plugins/LotusNotify/src/debug.cpp @@ -3,9 +3,7 @@ HANDLE netlibHandle; - void logRegister(){ - // Register netlib user for logging function NETLIBUSER nlu = { 0 }; nlu.cbSize = sizeof(nlu); @@ -13,14 +11,11 @@ void logRegister(){ nlu.szSettingsModule = PLUGINNAME; nlu.ptszDescriptiveName = mir_a2u(PLUGINNAME); netlibHandle = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); - } void logUnregister(){ - Netlib_CloseHandle(netlibHandle); netlibHandle = NULL; - } void log(const wchar_t* szText){ @@ -32,11 +27,9 @@ void log(const wchar_t* szText){ #ifdef _DEBUG OutputDebugString(szText); #endif //_DEBUG - } void log_p(const wchar_t* szText, ...){ - va_list args; va_start(args, szText); int len = _vscwprintf(szText, args ) + 1; // _vscprintf doesn't count terminating '\0' //!!!!!!!!!!!!!!!! @@ -44,14 +37,6 @@ void log_p(const wchar_t* szText, ...){ mir_vsntprintf(buffer, len, szText, args); va_end(args); log(buffer); - delete buffer; - + delete[] buffer; } - - - - - - - -- cgit v1.2.3