summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-29 17:40:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-29 17:40:44 +0300
commit7c4d37c907ad4fabe55d4bc2b115604b346c547a (patch)
treea197996d0354399e56e660553718179113052d54 /src
parentf16cf071e51f4768f20692c99414cb39521fa413 (diff)
small fix
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/netliblog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mir_app/src/netliblog.cpp b/src/mir_app/src/netliblog.cpp
index 0e34498d99..8d2fea89d5 100644
--- a/src/mir_app/src/netliblog.cpp
+++ b/src/mir_app/src/netliblog.cpp
@@ -358,9 +358,8 @@ void PROTO_INTERFACE::debugLogA(const char *szFormat, ...)
va_list args;
va_start(args, szFormat);
int res = _vsnprintf(buf, _countof(buf), szFormat, args);
- va_end(args);
-
NetlibLog_Worker(m_hNetlibUser, (res != -1) ? buf : CMStringA().FormatV(szFormat, args), 0);
+ va_end(args);
}
void PROTO_INTERFACE::debugLogW(const wchar_t *wszFormat, ...)
@@ -369,9 +368,8 @@ void PROTO_INTERFACE::debugLogW(const wchar_t *wszFormat, ...)
va_list args;
va_start(args, wszFormat);
int res = _vsnwprintf(buf, _countof(buf), wszFormat, args);
- va_end(args);
-
NetlibLog_Worker(m_hNetlibUser, ptrA(Utf8EncodeW((res != -1) ? buf : CMStringW().FormatV(wszFormat, args))), 0);
+ va_end(args);
}
/////////////////////////////////////////////////////////////////////////////////////////