summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/infopanel.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-09 15:00:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-09 15:00:10 +0000
commitad0169e0110232390474d23274bdc5dc2d385a9a (patch)
tree244d8c2a7d6d9db8d5fc2562003f4aec3d053c8a /plugins/TabSRMM/src/infopanel.cpp
parenta23d6936522260197b5b3b13e468c1cddd6d8ed8 (diff)
- unused variables wiped out of tabSRMM
- enhanced mc support git-svn-id: http://svn.miranda-ng.org/main/trunk@8503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/infopanel.cpp')
-rw-r--r--plugins/TabSRMM/src/infopanel.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp
index 80b4fdf7d3..464f870051 100644
--- a/plugins/TabSRMM/src/infopanel.cpp
+++ b/plugins/TabSRMM/src/infopanel.cpp
@@ -509,12 +509,11 @@ void CInfoPanel::RenderIPUIN(const HDC hdc, RECT& rcItem)
if (M.GetByte("ShowClientDescription", 1)) {
TCHAR temp[256];
- DBVARIANT dbv = { 0 };
- if (!db_get_ts(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer", &dbv)) {
- mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), dbv.ptszVal);
- ::db_free(&dbv);
- }
- else mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
+ ptrT szVersion(db_get_tsa(m_dat->cache->getActiveContact(), m_dat->cache->getActiveProto(), "MirVer"));
+ if (szVersion)
+ mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client: %s"), szVersion);
+ else
+ mir_sntprintf(temp, SIZEOF(temp), TranslateT(" Client not cached yet"));
_tcscat_s(szBuf, 256, temp);
}