diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-14 18:38:31 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-14 18:38:31 +0000 |
commit | d070cff19b08f38f705311fdd0ab00b8977f6f88 (patch) | |
tree | aae0ea8ed639d001f8a53b9d6f28830c533e075a /protocols/Twitter | |
parent | e7395543dbd893dbb0d3b038e3256bce9e480c69 (diff) |
try to fix encoding in popups (fixes #496)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter')
-rw-r--r-- | protocols/Twitter/src/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 0d86488993..fa16504164 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -535,9 +535,9 @@ void TwitterProto::ShowContactPopup(HANDLE hContact,const std::string &text) popup.colorBack = GetSysColor(COLOR_WINDOWTEXT);
DBVARIANT dbv;
- if( !db_get_s(hContact,"CList","MyHandle",&dbv) || !db_get_s(hContact,m_szModuleName,TWITTER_KEY_UN,&dbv))
+ if( !db_get_ts(hContact,"CList","MyHandle",&dbv) || !db_get_ts(hContact,m_szModuleName,TWITTER_KEY_UN,&dbv))
{
- mbcs_to_tcs(CP_UTF8,dbv.pszVal,popup.lptzContactName,MAX_CONTACTNAME);
+ _tcsncpy(popup.lptzContactName,dbv.ptszVal,MAX_CONTACTNAME);
db_free(&dbv);
}
|