diff options
Diffstat (limited to 'plugins/NotesAndReminders/src/notes.cpp')
-rw-r--r-- | plugins/NotesAndReminders/src/notes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp index f73cb4a51e..0cdca7e1aa 100644 --- a/plugins/NotesAndReminders/src/notes.cpp +++ b/plugins/NotesAndReminders/src/notes.cpp @@ -853,9 +853,9 @@ static void JustSaveNotesEx(STICKYNOTE *pModified) 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 - tData = (char*)malloc(SzT+1); + tData = (char*)malloc(SzT + 1); if (tData) - SendMessage(pNote->REHwnd, WM_GETTEXT, SzT+1, (LPARAM)tData); + GetWindowText(pNote->REHwnd, tData, SzT + 1); } if (pNote == pModified) |