From 5a670ae5582c7566c74567429cdbe296190c7284 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Thu, 27 Sep 2018 12:27:36 +0500 Subject: Scriver: crashfix --- plugins/Scriver/src/infobar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/Scriver/src') 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)); -- cgit v1.2.3