summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r--plugins/SmileyAdd/src/richcall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/src/richcall.cpp b/plugins/SmileyAdd/src/richcall.cpp
index afee5fca8f..582a1122ae 100644
--- a/plugins/SmileyAdd/src/richcall.cpp
+++ b/plugins/SmileyAdd/src/richcall.cpp
@@ -435,8 +435,8 @@ void SetRichOwnerCallback(HWND hwnd, HWND hwndInput, HWND hwndLog)
rdto->hwndLog = hwndLog;
g_RichEditOwnerList.insert(rdto);
- if (hwndInput)
- SendMessage(hwndInput, EM_SETUNDOLIMIT, 0, 0);
+ if (hwndLog)
+ SendMessage(hwndLog, EM_SETUNDOLIMIT, 0, 0);
mir_subclassWindow(hwnd, RichEditOwnerSubclass);
}