diff options
Diffstat (limited to 'plugins/LotusNotify/src/debug.cpp')
-rw-r--r-- | plugins/LotusNotify/src/debug.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
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;
}
-
-
-
-
-
-
-
|