summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Scriver/src/infobar.cpp4
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));