summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-17 19:03:41 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-17 19:03:41 +0300
commitb1800acb65fa4eb0c3248772b50c036cf474d1f2 (patch)
treecf1b485f4962f35c2398bc48b4ca4df84579407f
parent9ed8134e118a1b8e671252e37d2f247afa4ba5bf (diff)
fixes #4744 (Telegram: не работает отправка цитат)
-rw-r--r--src/mir_app/src/srmm_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 7c727c4bef..ab0096c557 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -613,7 +613,7 @@ INT_PTR CSrmmBaseDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
}
if (wParam == IDC_CODE) {
- if (lParam > 0 && lParam < _countof(wszBbcodes))
+ if (lParam > 0 && lParam <= _countof(wszBbcodes))
InsertBbcodeString(wszBbcodes[lParam-1]);
else
Srmm_ClickToolbarIcon(m_hContact, wParam, m_hwnd, 0);