mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 04:17:12 +01:00
parent
9f19bda8e3
commit
7c5dc01b02
@ -76,9 +76,9 @@ begin
|
|||||||
|
|
||||||
// no need for temp buf and moving
|
// no need for temp buf and moving
|
||||||
// the result is without null terminator.
|
// the result is without null terminator.
|
||||||
PWord(@Result[1])^ := len;
|
PWord(@Result[1])^ := len+1;
|
||||||
len := SendMessage(fHandle, EM_GETLINE, Index, lparam(@Result[1]));
|
len := SendMessage(fHandle, EM_GETLINE, Index, lparam(pchar(Result)));
|
||||||
// readjust length in case somethng went wrong
|
// readjust length in case something went wrong
|
||||||
Setlength(Result, len);
|
Setlength(Result, len);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user