diff options
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 2 |
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);
|