FpDebug: Fix QuoteWideText => wrong result len

This commit is contained in:
Martin 2022-03-04 00:47:32 +01:00
parent 625e655423
commit 624696270b

View File

@ -584,7 +584,7 @@ begin
if (c = #0) and (SPos >= SEnd) then begin
// END OF TEXT
Assert(RPos-1 <= @Result[Length(Result)], 'RPos-1 <= @Result[Length(Result)]');
SetLength(Result, RPos - @Result[1]);
SetLength(Result, RPos - PWideChar(@Result[1]));
exit;
end;