From d070cff19b08f38f705311fdd0ab00b8977f6f88 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 14 Nov 2013 18:38:31 +0000 Subject: try to fix encoding in popups (fixes #496) git-svn-id: http://svn.miranda-ng.org/main/trunk@6902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') 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); } -- cgit v1.2.3