diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-28 15:53:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-28 15:53:44 +0000 |
commit | b1873e87a089607c1f9b856cabe245945d62033d (patch) | |
tree | e99660ea7d28fff58b991d42f18e7283f0605fbf /protocols/GTalkExt/src/db.cpp | |
parent | 056d2be888a4235a109a123b7b2a715aa3ff72ba (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.cpp | 8 |
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)
|