* fix for regexpr unicode mode. (multiple a move with the size of the base char type)

Patch by Ludo B., mantis #020806

git-svn-id: trunk@19754 -
This commit is contained in:
marco 2011-12-04 18:41:04 +00:00
parent 2d928cbee8
commit a19b627739

View File

@ -1304,7 +1304,7 @@ function TRegExpr.GetMatch (Idx : integer) : RegExprString;
then begin
//SetString (Result, startp [idx], endp [idx] - startp [idx])
SetLength(Result,endp [idx] - startp [idx]);
System.Move(startp [idx]^,Result[1],length(Result));
System.Move(startp [idx]^,Result[1],length(Result)*sizeof(REChar));
end
else Result := '';
end; { of function TRegExpr.GetMatch