richmemo: fix for #23042, the patch by teejaydub - fixes hangs on win32 setrangeparams

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2830 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
skalogryz
2013-11-07 17:55:12 +00:00
parent 468fe8a4a5
commit 005d47e24a

View File

@ -209,6 +209,7 @@ begin
Result := false;
if (RichEditWnd = 0) then Exit;
FillChar(textlen, sizeof(textlen), 0);
textlen.flags := GTL_NUMCHARS or GTL_USECRLF or GTL_PRECISE;
textlen.codepage := CP_UNICODE;
len := SendMessage(RichEditWnd, EM_GETTEXTLENGTHEX, WPARAM(@textlen), 0);