diff options
author | ElzorFox <elzorfox@ya.ru> | 2018-09-27 12:27:36 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2018-09-27 12:27:36 +0500 |
commit | 5a670ae5582c7566c74567429cdbe296190c7284 (patch) | |
tree | 0c327657d0fd3e498e70b6f9f15802f088484342 /plugins/Scriver | |
parent | d91be420977573cedd2d9f17b604e2161dacb905 (diff) |
Scriver: crashfix
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/infobar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Scriver/src/infobar.cpp b/plugins/Scriver/src/infobar.cpp index 2bdfe366d6..0a5c9da3dd 100644 --- a/plugins/Scriver/src/infobar.cpp +++ b/plugins/Scriver/src/infobar.cpp @@ -84,8 +84,10 @@ void CSrmmWindow::RefreshInfobar() SETTEXTEX st;
if (szXStatusMsg && *szXStatusMsg)
mir_snwprintf(szText, L"%s (%s)", TranslateW(szXStatusName), szXStatusMsg);
- else
+ else if (szXStatusName && *szXStatusName)
wcsncpy_s(szText, TranslateW(szXStatusName), _TRUNCATE);
+ else
+ szText[0] = 0;
st.flags = ST_DEFAULT;
st.codepage = 1200;
SendDlgItemMessage(m_hwndInfo, IDC_INFOBAR_NAME, EM_SETTEXTEX, (WPARAM)&st, (LPARAM)Clist_GetContactDisplayName(m_hContact));
|