diff options
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r-- | tipper/popwin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 5110ae8..a092663 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -207,11 +207,16 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa // don't use stored status message DBDeleteContactSetting(pwd->hContact, MODULE, "TempStatusMsg"); - { + if(unicode_system) { TCHAR *stzCDN = (TCHAR *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)pwd->hContact, GCDNF_TCHAR); if(stzCDN) _tcsncpy(pwd->swzTitle, stzCDN, TITLE_TEXT_LEN); else _tcscpy(pwd->swzTitle, TranslateT("(Unknown)")); + } else { + char *szCDN = (char *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)pwd->hContact, 0); + + if(szCDN) a2t(szCDN, pwd->swzTitle, TITLE_TEXT_LEN); + else _tcscpy(pwd->swzTitle, TranslateT("(Unknown)")); } SendMessage(hwnd, PUM_REFRESH_VALUES, 0, 0); |