diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 04:23:01 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 04:23:01 +0000 |
commit | 850259c4eab1a77d973af51cd3bd62fbbd09f591 (patch) | |
tree | 7c3cf2435324cef4517210217689540e15fe8419 /plugins/NotesAndReminders/src/notes.cpp | |
parent | 7e97bbad5f31058886766c569303a0da648cbe92 (diff) |
SendMessage(... WM_GETTEXT ...) -> GetWindowText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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) |