LCL: result value

git-svn-id: trunk@46585 -
This commit is contained in:
mattias 2014-10-18 09:23:50 +00:00
parent 5e5a4e0a0c
commit 158d2ed291

View File

@ -4713,7 +4713,7 @@ function TControl.GetTextBuf(Buffer: PChar; BufSize: Integer): Integer;
var
S: string;
begin
if BufSize <= 0 then Exit;
if BufSize <= 0 then Exit(0);
S := RealGetText;
if Length(S) >= BufSize