summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NotesAndReminders')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index 8daed58a4d..f73cb4a51e 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -849,7 +849,7 @@ static void JustSaveNotesEx(STICKYNOTE *pModified)
if (pNote->OnTop) flags |= 2;
// get note text
- SzT = SendMessage(pNote->REHwnd, WM_GETTEXTLENGTH, 0, 0);
+ SzT = GetWindowTextLength(pNote->REHwnd);
if (SzT) // TODO: change to support unicode and rtf, use EM_STREAMOUT
{
if (SzT > MAX_NOTE_LEN) SzT = MAX_NOTE_LEN; // we want to be far below the 64k limit