summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-09 16:26:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-09 16:26:00 +0300
commit66e6995d7d8cbfe96146599cbc5b70b8cafbcba2 (patch)
treec4de292ceea257f5e7640f24cf471888b7436d57
parent6635344981d9bfb245ada6c685b3a179cfd6ef45 (diff)
fixes #3270 (crash in tabSRMM)
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index db968ba08e..caf4c15242 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -766,6 +766,9 @@ static wchar_t* Trunc500(wchar_t *str)
bool CMsgDialog::FormatTitleBar(const wchar_t *szFormat, CMStringW &dest)
{
+ if (m_cache == nullptr)
+ return false;
+
for (const wchar_t *src = szFormat; *src; src++) {
if (*src != '%') {
dest.AppendChar(*src);