mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 15:20:30 +02:00
wince interface: fixed get text from controls (TEdit) crash (bug #8676) from zaher dirkey
git-svn-id: trunk@10985 -
This commit is contained in:
parent
b8ac959cd9
commit
e81129f71b
@ -1130,9 +1130,9 @@ var
|
||||
begin
|
||||
TextLen := GetWindowTextLength(AHandle);
|
||||
tmpWideStr := PWideChar(SysAllocStringLen(nil,TextLen + 1));
|
||||
GetWindowText(AHandle, PWideChar(tmpWideStr), TextLen + 1);
|
||||
GetWindowText(AHandle, tmpWideStr, TextLen + 1);
|
||||
Result := WideStringToString(widestring(tmpWideStr));
|
||||
FreeMem(tmpWideStr);
|
||||
SysFreeString(tmpWideStr);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user