diff options
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)
|