diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-19 18:44:33 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-19 18:44:33 +0300 |
commit | d07eff4fb66e8484a03514ea1725f4feb2004519 (patch) | |
tree | 7f75d3d426e28d1c3634429195118b861d3b3a2d /plugins/SmileyAdd/src/richcall.cpp | |
parent | 427e4097ebfe1a3e38cbaa69e1e2af5c881deb67 (diff) |
fixes #4057 (SmileyAdd пытается работать с журналом NewStory, как с RTF)
Diffstat (limited to 'plugins/SmileyAdd/src/richcall.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/richcall.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/richcall.cpp b/plugins/SmileyAdd/src/richcall.cpp index ed0c886ae1..da9323e633 100644 --- a/plugins/SmileyAdd/src/richcall.cpp +++ b/plugins/SmileyAdd/src/richcall.cpp @@ -328,6 +328,9 @@ bool SetRichCallback(HWND hwnd, MCONTACT hContact, bool subany, bool subnew) void CloseRichCallback(HWND hwnd)
{
+ if (!hwnd)
+ return;
+
RichEditData *rdt;
{
mir_cslock lck(csLists);
@@ -342,6 +345,7 @@ void CloseRichCallback(HWND hwnd) if (rdt->hToolTip)
DestroyWindow(rdt->hToolTip);
delete rdt;
+
mir_unsubclassWindow(hwnd, RichEditSubclass);
}
|