diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-10 13:28:49 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-10 13:28:49 +0000 |
commit | 794fa3fb5cc63ac9b69908bd04f4be985a4a8cd1 (patch) | |
tree | fdbdd95eff3b6508bd38aefb0695ccd96afdbbca /plugins/TabSRMM/src | |
parent | f2935b7bf093965926cee07254f7a015ecd492cd (diff) |
- unused services MS_FP_SAMECLIENTS & MS_FP_GETCLIENTICON removed;
- Finger_IsSameClents & Finger_GetClientIcon helpers added;
- unused code removed from FingerPrint or replaced with the calls from mir_core.dll
git-svn-id: http://svn.miranda-ng.org/main/trunk@5632 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 93ac9d56ff..71cd93d012 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -2177,17 +2177,14 @@ void TSAPI SendNudge(const TWindowData *dat) void TSAPI GetClientIcon(TWindowData *dat)
{
- DBVARIANT dbv = {0};
-
if (dat->hClientIcon)
DestroyIcon(dat->hClientIcon);
dat->hClientIcon = 0;
- if (ServiceExists(MS_FP_GETCLIENTICON)) {
- if (!db_get_s(dat->cache->getActiveContact(), dat->cache->getActiveProto(), "MirVer", &dbv)) {
- dat->hClientIcon = (HICON)CallService(MS_FP_GETCLIENTICON, (WPARAM)dbv.pszVal, 1);
- db_free(&dbv);
- }
+ if ( ServiceExists(MS_FP_GETCLIENTICONT)) {
+ ptrT tszMirver( db_get_tsa(dat->cache->getActiveContact(), dat->cache->getActiveProto(), "MirVer"));
+ if (tszMirver)
+ dat->hClientIcon = Finger_GetClientIcon(tszMirver, 1);
}
}
|