summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-05-02 20:24:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-05-02 20:24:44 +0300
commit89b14ffd89c576e51d0686210d305d4ced86a730 (patch)
treee96d122a34759cf1bf17cee16a8dd0473a9b6073 /src
parentee31efc381b25cabc416a0d5ba732eef05f9da15 (diff)
crash fix
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index 11bdbd1978..62da31e2d4 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -896,6 +896,8 @@ LRESULT CMsgDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_SETFOCUS: {
const char* enc = (const char*)CallProtoService(m_szProto, PS_GETCAPS, PFLAG_GETCURRENTENCRYPTION, m_hContact);
+ if (enc == (const char *)CALLSERVICE_NOTFOUND)
+ enc = nullptr;
if (!m_sEncryption.IsEmpty() ^ (bool)enc)
RedrawWindow(m_message.GetHwnd(), NULL, NULL, RDW_FRAME | RDW_INVALIDATE);
m_sEncryption = enc;