diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-02 16:34:24 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-02 16:34:24 +0300 |
commit | 310576eb7a687c687ecba4e19d11806703e94566 (patch) | |
tree | e54047d7866e640674cbdc7c662572cd7061e1a4 /plugins | |
parent | b32c0cb96cb026bf5533eebb8db3e4a128bddc4e (diff) |
fixes #3770 (NewStory: падение при редактировании сообщения)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 75c7626c58..029a1ea12f 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -351,7 +351,7 @@ void NewstoryListData::EndEditItem(bool bAccept) if (bAccept) { if ((GetWindowLong(hwndEditBox, GWL_STYLE) & ES_READONLY) == 0) { - auto *pItem = (ItemData *)GetWindowLongPtrW(hwndEditBox, GWLP_USERDATA); + auto *pItem = GetItem(caret); int iTextLen = GetWindowTextLengthW(hwndEditBox); replaceStrW(pItem->wtext, (wchar_t *)mir_alloc((iTextLen + 1) * sizeof(wchar_t))); |