codetools: fixed substring

git-svn-id: trunk@35661 -
This commit is contained in:
mattias 2012-03-03 10:35:58 +00:00
parent 984f5ac132
commit 4bf4fdc891

View File

@ -5007,7 +5007,7 @@ var
l: SizeInt;
begin
if (p=nil) or (Count=0) then exit('');
l:=IndexByte(p,Count,0);
l:=IndexByte(p^,Count,0);
if l<0 then l:=Count;
if l=0 then exit('');
SetLength(Result,l);