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