summaryrefslogtreecommitdiff
path: root/protocols/GTalkExt/src/db.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-28 15:53:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-28 15:53:44 +0000
commitb1873e87a089607c1f9b856cabe245945d62033d (patch)
treee99660ea7d28fff58b991d42f18e7283f0605fbf /protocols/GTalkExt/src/db.cpp
parent056d2be888a4235a109a123b7b2a715aa3ff72ba (diff)
another bunch of exceptions painfully died
git-svn-id: http://svn.miranda-ng.org/main/trunk@4226 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt/src/db.cpp')
-rw-r--r--protocols/GTalkExt/src/db.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/protocols/GTalkExt/src/db.cpp b/protocols/GTalkExt/src/db.cpp
index d5e8e6edbc..691e065bc3 100644
--- a/protocols/GTalkExt/src/db.cpp
+++ b/protocols/GTalkExt/src/db.cpp
@@ -24,13 +24,7 @@
LPTSTR ReadJidSetting(LPCSTR name, LPCTSTR jid)
{
- DBVARIANT dbv;
- if ( DBGetContactSettingTString(0, name, _T2A(jid), &dbv))
- return (LPTSTR)calloc(2, sizeof(TCHAR));
-
- TCHAR *result = _tcsdup(dbv.ptszVal);
- db_free(&dbv);
- return result;
+ return db_get_tsa(0, name, _T2A(jid));
}
void WriteJidSetting(LPCSTR name, LPCTSTR jid, LPCTSTR setting)